ReferenceScene Graph

Scene Graph Scale Entity

Scale an entity via its transform to resize it — grow a pickup, shrink a shield, pulse something for emphasis. Size lives in the transform too.

Updated
The code on this reference page did not pass the latest compile check — verify it in your project.

Want a health pickup that pulses bigger to grab attention? You don't need a new model — you just change its size. In Verse, an entity's size lives in its transform, right next to position and rotation.

Think of the transform as the entity's blueprint card. Scale of one-one-one means normal size. Double it and the pickup grows to twice as big in every direction — same model, bigger footprint.

First we grab the entity's transform with GetLocalTransform. Then we take its Scale, a vector3, and multiply it by two-point-zero — that scales X, Y, and Z all at once. The result is a pickup twice as wide, twice as tall, twice as deep.

Scale is just part of the transform — multiply it to grow or shrink anything.

T : transform = Entity.GetLocalTransform()
BigScale : vector3 = T.Scale * 2.0
Print("X:{BigScale.X} Y:{BigScale.Y} Z:{BigScale.Z}")

Build your own lesson with scene_graph_scale_entity

Generate a personalized, compile-checked lesson grounded in this exact reference.

Build a lesson →