explicit operator Vector2Int(Vector3Int)
Converts a Vector3Int into a Vector2Int.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Operator
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
explicit operator Vector2Int(Vector2In)
public static explicit operator Vector2Int(Vector3Int v)
Parameters
The Vector3Int to convert.
Returns
Type | Description |
|---|---|
| Vector2Int |
Remarks
You can explicitly convert a to a by casting.
Vector3IntVector2IntThe z component is discarded in the conversion.