October 2016
Intermediate to advanced
452 pages
9h 47m
English
Custom Actors without components don't have a location, and can't be attached to other Actors. Without a root Component, an Actor doesn't have a base transform, and so it has no location. Most Actors, therefore, require at least one Component to be useful.
We can create custom Actors through composition—adding a number of components to our Actor, where each component provides some of the functionality required.
This recipe will use the Actor class created in the Creating a custom Actor in C++ recipe.
public section:UPROPERTY() UStaticMeshComponent* Mesh;
Read now
Unlock full access