October 2016
Intermediate to advanced
452 pages
9h 47m
English
One advantage that UInterfaces provides you with as a developer is the ability to treat a collection of heterogeneous objects that implement a common interface as a collection of the same object, using Cast< > to handle the conversion.
Please note that this won't work if your class implements the interface through a Blueprint.
You should have a UInterface, and an Actor implementing the interface ready for this recipe.
Create a new game mode using the wizard within Unreal, or optionally, reuse a project and GameMode from a previous recipe.
UPROPERTY() macro to it:UPROPERTY() TArray<IMyInterface*>MyInterfaceInstances;
Read now
Unlock full access