Hi.
I need to get actor by it’s name.
I found Get Class of an object with its name - Blueprint - Epic Developer Community Forums and in it’s screenshot it used GetClassWithName,
but I can’t find BP named GetClassWithName.
http://s6.postimg.org/8kylg9z75/screenshot_164.png
Where I can find GetClassWithName BP?
Thank you.
Hi ,
The reason this node doesn’t exist in your blueprint is because it is a function that was created by the user in the answerhub link that you posted. The two pictures below the one that you’re referencing in his post show how he set up this function in blueprints. You’ll need to make your own function similar to his if you want to do this.
Hope this helps!
Hi.
Can you provide source code for such C++ BP?
Thank you.
The other user is not using C++ to create this. If you go into the blueprint editor and hover over the ‘Functions’ category under the tab on the bottom left (by default), you should be able to add a new function as you would add a new variable. After doing that, you can follow these pictures that were posted in the answerhub post that you linked. One of these creates the node you want, while the other initiates the array being used in the first function.
OK, I understood it.
Thank you.
@ What type has variable NameClassTable? Array of what type?
I’m not sure as these were screenshots from the other user. I would assume that it is an array of references to whatever kind of object he is attempting to set the values to. As an example, if his ‘Wood’ ‘Stone’ and ‘Little_House_Wood’ are static meshes, it would be an array of static mesh references.
Thank you! Can you advice me how to spawn actor from BP?
Today I have the whole day trying to solve this problem and has not yet been able to solve it.
auto cls = StaticLoadObject(UObject::StaticClass(), nullptr, TEXT("/Game/Cube_Blueprint"));
UBlueprint * bp = Cast<UBlueprint>(cls);
How to spawn bp object? 
As this isn’t related to the original question, can you please make a separate Answerhub post for this in the C++ Programming or Using UE section? It would be best to keep this post focused on the creation of the blueprint node.