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