How to spawn actor from BP?
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.
How to spawn bp object?
asked Jun 23 '15 at 04:54 PM in C++ Programming
I lost 2 days to solve this problem...
But I made solution!
answered Jun 23 '15 at 05:14 PM
Do you want to spawn Object or Actor? If actor use:
If object, use:
EDIT: I just realized what do you want to achieve. Look at this code:
I had the same issue and struggled a bit to get the solution from the first answer to work from blueprints - so for everyone who has the same problem. First of all i created a c++ blueprintfunction library, here the header:
Here the cpp:
And here a BP example how to use it (the path you can just get by the content browser, right-click on some StaticMeshActor and select "Copy Reference")
The spawn location is just some static thing which i add to the camera, you can get the location from where ever you like to spawn a new object ;)
Follow this question
Once you sign in you will be able to subscribe for any updates here