Table of Contents

Class GridBuilderUtils

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

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

prefab T

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

root GameObject
screenPosition Vector3

Returns

Vector3

ScreenToWorld(Vector3)

This function only works if a main camera has been set.

public static Vector3 ScreenToWorld(Vector3 screenPosition)

Parameters

screenPosition Vector3

Returns

Vector3