Show / Hide Table of Contents

Class VariaUtils

Inheritance
Object
VariaUtils
Namespace: Varia
Assembly: cs.temp.dll.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
Type Description
String

Instantiate(GameObject)

Same behaviour as GameObject.Instantiate

Declaration
public static GameObject Instantiate(GameObject original)
Parameters
Type Name Description
GameObject original
Returns
Type Description
GameObject

Instantiate(GameObject, Transform)

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

Instantiate(GameObject, Transform, Boolean)

Same behaviour as GameObject.Instantiate

Declaration
public static GameObject Instantiate(GameObject original, Transform parent, bool worldPositionStays)
Parameters
Type Name Description
GameObject original
Transform parent
Boolean 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

Instantiate(GameObject, Vector3, Quaternion, Transform)

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
Back to top Generated by DocFX