Unity - Scripting API: Vector3Int.Vector3Int
Vector3Int Constructor
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Declaration
public Vector3Int(int x, int y, int z);
Parameters
| Parameter | Description |
|---|---|
| x | The X component of the Vector3Int. |
| y | The Y component of the Vector3Int. |
| z | The Z component of the Vector3Int. |
Description
Initializes and returns an instance of a new Vector3Int with x, y, z components.
Declaration
public Vector3Int(int x, int y);
Parameters
| Parameter | Description |
|---|---|
| x | The X component of the Vector3Int. |
| y | The Y component of the Vector3Int. |
Description
Initializes and returns an instance of a new Vector3Int with x and y components and sets z to zero.