Hi.
I have a simple question.
Is it possible to have a variable in level blueprint with name of class? I need to get all actors from class which I am interacting with.
Thans in advance.
Hi.
I have a simple question.
Is it possible to have a variable in level blueprint with name of class? I need to get all actors from class which I am interacting with.
Thans in advance.
If you need “All Actor from Class” then there is a really nice function. It is called “Get All Actors from Class” and it returns an Array. You can then (if you haven’t created a variable(array) already) pull out the return array and chose “Promote to variable”. Then it will create a variable of the return type for you (:
Thank you for the answer, eXi
That is what I want to do in my level BP. I can’t doing this individually for each BP class, because with 5 and more classes there won’t be place for it
Is it possible to get that? Or maybe there is some better solution?
What do you mean there will not be the room?
Sorry
Narg
I don’t understand.
I just want to doing this more automatically. I don’t want to have much work every time I add new blueprint class.
If I would do C++ scripting I suppose it would be possible to have a string variable (for the name of clicked class) which specifying class for further operations.
I don’t remember a way to just click a class and get its name.
The only way you could make this more efficiently is by making an array of classes and using a for each loop combined with the Get All Actors node and an Array of Arrays of Actors.
But i don’t see the needs.
Do you use blueprint classes of different baseclasses or are these “new” blueprint classes a child class of something? Because if you get the base/parent class with the “Get All Actors”, then you would also get the child classes if i’m not mistaken.
This way you could have x amount of different child classes, but still only use one Get All Actors Node for the base class.
You can see the details of what I want to do here, there are some screens also
https://answers.unrealengine.com/questions/204556/objects-identification.html
Hi, I wonder if it has as I can see the content of this page?
I need to make a code where I find all the variables of a class BluePrint …
if not, could you tell me a little more where research to develop this ??
Hi, I wonder if it has as I can see the content of this page?
I need to make a code where I find all the variables of a class BluePrint …
if not, could you tell me a little more where research to develop this ??
Here is more about what I wanted to do: