book_4_sparkGenerated
code_blocksInput

Description

The Transform.Zero field represents a zero transform. This is a static, read-only field that provides a default transform with a scale of 1, a position of Vector3.Zero, and a rotation of Rotation.Identity. It is useful for initializing or resetting transforms to a known default state.

Usage

Use Transform.Zero when you need a default transform with no translation, rotation, or scaling applied. This can be particularly useful when you want to reset an object's transform or when you need a baseline transform to work from.

Example

// Example of using Transform.Zero
Transform defaultTransform = Transform.Zero;

// Use defaultTransform to reset an object's transform
GameObject myObject = new GameObject();
myObject.Transform = defaultTransform;