Dynamic mesh scale

Hello,

I’d like create a blueprint for a simple mesh (sphere or box) that would dynamically grow or shrink based on float variable value.

When box = x,y,z
When Sphere = radius

Each mesh would need to have the center on the flat surface instead of the center of the mesh.

ilustration:

(The transition from one size to another would be smooth (eased)).

Thank you in advance!
A

Hi!
I create basic example for uniform scaling.

  1. Creata Actor blueprint.

  2. Add Scene component and rename it to Root.

  3. Add Sphere static mesh and set Z offset to 50 cm.

  1. Open Construction script tab and add float variable Scale. Set it Editable and after Compile set Default Value to 1.

  1. Place BP to scene and set needed scale.