Class UnityUtils
Assembly: Xareus.Unity.Utils.dll
Syntax
public static class UnityUtils
Methods
GetComponent(string)
Fetchs a component within hierarchy.
The path is broken in two halves.
The first half is the name of the gameobject holding the component.
The second half is the name of the component.
Declaration
public static Component GetComponent(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
GetComponentPath(Component)
Builds the path to the component within hierarchy.
Declaration
public static string GetComponentPath(Component component)
Parameters
Returns
ThreadSafeFindObjectsOfType<T>(bool)
Declaration
public static T[] ThreadSafeFindObjectsOfType<T>(bool includeInactive = false) where T : Object
Parameters
Type |
Name |
Description |
bool |
includeInactive |
|
Returns
Type Parameters