How I can attach an actor to a box component?

Im calling this method inside the beginplay method

This error is from CreateDefaultSubobject function, do you use it? You don’t need it anymore and it does not work outside the constructor.

Okay great I have tried it again and everything works. But I wanted to see those nodes inside the editor. With blueprints I can create a child actor component and set the child actor class inside the contruction script. Maybe I can figure it out how to do this. But anyway thanks.

EDIT: onconstruction also is called after the game is initialized … perfect :slight_smile: