October 2016
Intermediate to advanced
452 pages
9h 47m
English
When creating custom Actors from components, it is important to consider the concept of Attaching. Attaching components together creates a relationship where transformations applied to the parent component will also affect the components that are attached to it.
Actor using the editor, and call it HierarchyActor.UPROPERTY() USceneComponent* Root; UPROPERTY() USceneComponent* ChildSceneComponent; UPROPERTY() UStaticMeshComponent* BoxOne; UPROPERTY() UStaticMeshComponent* BoxTwo;
Root = CreateDefaultSubobject<USceneComponent>("Root"); ChildSceneComponent = CreateDefaultSubobject<USceneComponent>("ChildSceneComponent"); ...Read now
Unlock full access