A few things to watch out for:
- Make sure to turn off collision for the Cube
- Set the Cube to be Hidden in Game; don't use a transparent material, as this will incur an expensive rendering cost
- If you need to get the extent of the scaled Box component, use the Get Scaled Box Extent function, which returns a Vector3 for the X, Y, and Z extent of the Box, as if it wasn't scaled but had its extent manually set
Useful images:
Component Hierarchy
Cube Collision settings
Use GetScaledBoxExtent
Blueprint in Editor
Blueprint during Gameplay but with Box component Visible in Game
Leave a comment: