The Position
property of the GameTransform
class represents the position of the game object in world coordinates. This property is marked as obsolete, and it is recommended to use WorldPosition
instead.
The Position
property of the GameTransform
class represents the position of the game object in world coordinates. This property is marked as obsolete, and it is recommended to use WorldPosition
instead.
To access the position of a game object in world coordinates, use the WorldPosition
property instead of Position
. The Position
property is maintained for backward compatibility but may be removed in future versions.
// Example of accessing the position of a GameObject GameTransform transform = myGameObject.Transform; Vector3 worldPosition = transform.WorldPosition; // Recommended // Obsolete usage Vector3 obsoletePosition = transform.Position; // Not recommended, use WorldPosition instead