I am trying to dynamically change the height of a cube based on the triggerbox that is activated, but I haven’t been able to figure out how to make it perform the change on the target cube, all I have been able to figure out is how to get the value through the bounds, change the value, but how do I make that changed value affect the cube? Any help is greatly appreciated as this is my first attempt at learning UE5.
Hey @htrogers2001! Welcome to the forums!
Try to get some screenshots of your code!
Select the object and take a shot of the details window in the level, with the location, rotation, and scale- right below there there is an option for “Movable”, make sure that’s selected.
I’m thinking maybe you don’t have a link between the trigger box and the cube? Are they both on the same actor?
Well okay then! Easy fix.
Firstly you can get rid of the cast! A cast is a “Mold”, it isn’t a method of communication. If something already IS what you’re casting to, it doesn’t do anything. ![]()
Now to change the scale you want to use a “Set Scale” node with the static mesh of the cube blueprint as the target.
The variables you’ve brought in aren’t used- the Cube Z.


