C++ Interface Iterator
I need to iterate over objects that Implement certain Interface.
I have seen that there's a solution in blueprints: https://docs.unrealengine.com/latest/INT/BlueprintAPI/Utilities/GetAllActorswithInterface/index.html
I'd be great having something like:
I have seen this solution, from the awesome Rama, but It seems to me that there must be a rather elegant way of doing it.
Thanks very very much.
asked Nov 24 '15 at 03:26 PM in C++ Programming
You can use this blueprint function in C++ too, and so, use UGameplayStatics::GetAllActorsWithInterface to get all the actors using a specific interface. But you still have to cast your interface or use IISavable::Execute_GetSaveLoadInitClassData(actor). But I am not sure if you can get a result with the auto-generated Execute_* functions (didn't try).
answered Nov 24 '15 at 03:40 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here