explicit operator Vector3Int(Vector2Int)
Converts a Vector2Int to a Vector3Int.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Operator
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
explicit operator Vector3Int(Vector3In)
public static explicit operator Vector3Int(Vector2Int v)
Parameters
The Vector2Int to convert to a Vector3Int.
Returns
Type | Description |
|---|---|
| Vector3Int |
Remarks
Vector2Ints can be explicitly converted to Vector3Int (z is set to zero in the result).