How to reference one blueprint from another?
I am writing an Actor class in C++.
I have created a blueprint class that derives from this Actor class.
I want to be able to reference some other blueprint class from within my Actor blueprint (so I can spawn it through code), but when I create a UProperty it only seems to be letting me select from Actors that are in the currently opened map.
I want a reference to a non-scene object.
In the above example, When I go to edit the blueprint class and try to assign some other blueprint to ReferencedActor, I am unable to select anything other than Actors in the currently loaded map.
asked Jan 05 '18 at 10:44 AM in C++ Programming
Hey here, so you want to be able to select a type of an actor and not an instance correct? if that is the case you can do this:
This will create a dropdown where you can select from all of the child classes of the class you specified. Then you just use the variable itself like it's an UClass for the SpawnActor, for example.
answered Jan 05 '18 at 11:05 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here