Class VariaUtils
Namespace: Varia
Assembly: Varia.dll
Syntax
public static class VariaUtils
Methods
GetNamePath(GameObject)
Gives the name of the all the ancestors of the current game object
Declaration
public static string GetNamePath(this GameObject go)
Parameters
| Type |
Name |
Description |
| GameObject |
go |
|
Returns
Instantiate(GameObject)
Same behaviour as GameObject.Instantiate
Declaration
public static GameObject Instantiate(GameObject original)
Parameters
| Type |
Name |
Description |
| GameObject |
original |
|
Returns
| Type |
Description |
| GameObject |
|
Same behaviour as GameObject.Instantiate
Declaration
public static GameObject Instantiate(GameObject original, Transform parent)
Parameters
| Type |
Name |
Description |
| GameObject |
original |
|
| Transform |
parent |
|
Returns
| Type |
Description |
| GameObject |
|
Same behaviour as GameObject.Instantiate
Declaration
public static GameObject Instantiate(GameObject original, Transform parent, bool worldPositionStays)
Parameters
| Type |
Name |
Description |
| GameObject |
original |
|
| Transform |
parent |
|
| bool |
worldPositionStays |
|
Returns
| Type |
Description |
| GameObject |
|
Instantiate(GameObject, Vector3, Quaternion)
Same behaviour as GameObject.Instantiate
Declaration
public static GameObject Instantiate(GameObject original, Vector3 position, Quaternion rotation)
Parameters
| Type |
Name |
Description |
| GameObject |
original |
|
| Vector3 |
position |
|
| Quaternion |
rotation |
|
Returns
| Type |
Description |
| GameObject |
|
Same behaviour as GameObject.Instantiate
Declaration
public static GameObject Instantiate(GameObject original, Vector3 position, Quaternion rotation, Transform parent)
Parameters
| Type |
Name |
Description |
| GameObject |
original |
|
| Vector3 |
position |
|
| Quaternion |
rotation |
|
| Transform |
parent |
|
Returns
| Type |
Description |
| GameObject |
|