int z

book_4_sparkGenerated
code_blocksInput

Description

The z field represents the Z component of a Vector3Int structure. It is an integer value that specifies the position or magnitude along the Z-axis in a 3D integer vector space.

Usage

You can access and modify the z field directly since it is a public instance field. It is commonly used in operations involving 3D integer vectors, such as setting or retrieving the Z component of a vector.

Example

// Example of using the z field in a Vector3Int
Vector3Int vector = new Vector3Int();
vector.z = 10;

// Accessing the z component
int zValue = vector.z;

// Output the z component
// Note: Use a logging system or UI element to display the value
// Example: Log.Info($"Z component: {zValue}");