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.
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.
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.
Vector3Int vector = new Vector3Int(); vector.z = 5; int zValue = vector.z; // zValue is now 5