Child Actors
- I want composition.
- You do this with Child Actors.
- First I build a BP_Display
- This is an actor blueprint with just a Text Render object
- I have a single function
NewMessage
- This takes a string
- And sets the text to be that string.
-
- I have another class that I want to have a display like this.
- Add a ChildActor component.
- Click on this and select the Child Actor Component in the details panel
-
- Set Child Actor Class to be the type of blueprint you want.
- Accessing the ChildActor
- Unfortunately just accessing the child actor component is insufficient.
- You need to add a get child actor node
- Then you need to cast it to the proper child actor.
-