Class ComponentHolderProtocol
Inheritance
ComponentHolderProtocol
Syntax
public static class ComponentHolderProtocol
Methods
AddComponent<T>(Object)
Declaration
public static T AddComponent<T>(this Object uo)
where T : Component
Parameters
Type |
Name |
Description |
Object |
uo |
|
Returns
Type Parameters
GameObject(Object)
Declaration
public static GameObject GameObject(this Object uo)
Parameters
Type |
Name |
Description |
Object |
uo |
|
Returns
GetComponent(Object, Type)
Declaration
public static Component GetComponent(this Object uo, Type type)
Parameters
Returns
GetComponent<T>(Object)
Declaration
public static T GetComponent<T>(this Object uo)
Parameters
Type |
Name |
Description |
Object |
uo |
|
Returns
Type Parameters
GetComponentInChildren(Object, Type)
Declaration
public static Component GetComponentInChildren(this Object uo, Type type)
Parameters
Returns
GetComponentInChildren<T>(Object)
Declaration
public static T GetComponentInChildren<T>(this Object uo)
Parameters
Type |
Name |
Description |
Object |
uo |
|
Returns
Type Parameters
GetComponentInParent(Object, Type)
Declaration
public static Component GetComponentInParent(this Object uo, Type type)
Parameters
Returns
GetComponentInParent<T>(Object)
Declaration
public static T GetComponentInParent<T>(this Object uo)
Parameters
Type |
Name |
Description |
Object |
uo |
|
Returns
Type Parameters
GetComponents(Object, Type)
Declaration
public static Component[] GetComponents(this Object uo, Type type)
Parameters
Returns
GetComponents<T>(Object)
Declaration
public static T[] GetComponents<T>(this Object uo)
Parameters
Type |
Name |
Description |
Object |
uo |
|
Returns
Type Parameters
GetComponentsInChildren(Object, Type)
Declaration
public static Component[] GetComponentsInChildren(this Object uo, Type type)
Parameters
Returns
GetComponentsInChildren<T>(Object)
Declaration
public static T[] GetComponentsInChildren<T>(this Object uo)
Parameters
Type |
Name |
Description |
Object |
uo |
|
Returns
Type Parameters
GetComponentsInParent(Object, Type)
Declaration
public static Component[] GetComponentsInParent(this Object uo, Type type)
Parameters
Returns
GetComponentsInParent<T>(Object)
Declaration
public static T[] GetComponentsInParent<T>(this Object uo)
Parameters
Type |
Name |
Description |
Object |
uo |
|
Returns
Type Parameters
GetOrAddComponent<T>(Object)
Declaration
public static T GetOrAddComponent<T>(this Object uo)
where T : Component
Parameters
Type |
Name |
Description |
Object |
uo |
|
Returns
Type Parameters
IsComponentHolder(Object)
Declaration
public static bool IsComponentHolder(this Object uo)
Parameters
Type |
Name |
Description |
Object |
uo |
|
Returns
IsComponentHolderType(Type)
Declaration
public static bool IsComponentHolderType(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns