The Scale
property of the GameTransform
class represents the scale of the object in world coordinates. This property is marked as obsolete, and it is recommended to use WorldScale
instead.
The Scale
property of the GameTransform
class represents the scale of the object in world coordinates. This property is marked as obsolete, and it is recommended to use WorldScale
instead.
To access the scale of a GameTransform
object, you can use the Scale
property. However, since this property is obsolete, it is advised to use the WorldScale
property for future-proofing your code.
// Example of accessing the Scale property (obsolete) GameTransform transform = new GameTransform(); Vector3 scale = transform.Scale; // Obsolete, use WorldScale instead // Recommended usage Vector3 worldScale = transform.WorldScale;