scale property
Vector3
get
scale
This node's scale relative to its parent.
Same copy rules as position. Setting leaves the position and rotation alone. A scale set here, or recorded by an importer, reads back exactly; on a node whose transform arrived as a matrix the getter decomposes it, which reports a mirror on X whichever axis the matrix actually mirrored.
Implementation
Vector3 get scale {
assert(_debugCheckTransformHandouts());
final value = _decomposedLocalTransform().scale.clone();
assert(_debugRecordHandout('scale', value, value.clone()));
return value;
}
set
scale
(Vector3 value)
Implementation
set scale(Vector3 value) {
assert(_debugForgetHandout('scale'));
final trs = _decomposedLocalTransform();
trs.scale.setFrom(value);
setLocalTransformTrs(trs);
}