Class GridBuilderUtils
Provides utility functions for grid builders. Renamed from GridBuilderUtil to GridBuilderUtils(1.8.1)
[Version(1, 8, 0)]
public static class GridBuilderUtils
- Inheritance
-
GridBuilderUtils
- Inherited Members
Methods
Instantiate<T>(T)
public static T Instantiate<T>(T prefab) where T : MonoBehaviour
Parameters
prefabT
Returns
- T
Type Parameters
T
ScreenToWorld(GameObject, Vector3)
This function only works if a main camera has been set.
public static Vector3 ScreenToWorld(GameObject root, Vector3 screenPosition)
Parameters
rootGameObjectscreenPositionVector3
Returns
ScreenToWorld(Vector3)
This function only works if a main camera has been set.
public static Vector3 ScreenToWorld(Vector3 screenPosition)
Parameters
screenPositionVector3