The LocalPosition
property of the GameTransform
class represents the position of the object in local coordinates. This property is useful for determining the position of an object relative to its parent in the scene hierarchy.
The LocalPosition
property of the GameTransform
class represents the position of the object in local coordinates. This property is useful for determining the position of an object relative to its parent in the scene hierarchy.
Use the LocalPosition
property to get or set the local position of a GameTransform
object. This property is marked as obsolete, and it is recommended to use the LocalPosition
directly instead of accessing it through Transform.LocalPosition
.
// Example of setting the local position of a GameTransform GameTransform transform = new GameTransform(); transform.LocalPosition = new Vector3(1.0f, 2.0f, 3.0f); // Example of getting the local position of a GameTransform Vector3 localPos = transform.LocalPosition; // Note: This property is marked as obsolete, consider using the recommended alternatives.