Vector3 Scale { get; set; }

robot_2Generated
code_blocksInput

Description

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.

Usage

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

// 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;