Class Vector3IntExtensions
Extension helper functions for converting Vector3Int to int3 and vice versa
Inherited Members
Namespace: Unity.Tilemaps.Experimental
Assembly: Unity.2D.Tilemap.Experimental.dll
Syntax
public static class Vector3IntExtensions
Methods
ToInt3(Vector3Int)
Converts a Vector3Int to int3
Declaration
public static int3 ToInt3(this Vector3Int v)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3Int | v | Vector3Int to convert |
Returns
| Type | Description |
|---|---|
| int3 | Converted int3 |
ToVector3Int(int3)
Converts an int3 to Vector3Int
Declaration
public static Vector3Int ToVector3Int(this int3 v)
Parameters
| Type | Name | Description |
|---|---|---|
| int3 | v | int3 to convert |
Returns
| Type | Description |
|---|---|
| Vector3Int | Converted Vector3Int |