MonoBehaviourExtensions Class |
Namespace: Gamelogic.Extensions
[VersionAttribute(1, 0, 0)] public static class MonoBehaviourExtensions
The MonoBehaviourExtensions type exposes the following members.
Name | Description | |
---|---|---|
CancelInvoke | Obsolete.
Cancels the action if it was scheduled.
| |
CloneT(T) |
Clones an object.
| |
CloneT(T, Int32) |
Clones an object.
| |
FindChild(Component, String) | ||
FindChild(Component, String, Boolean) | ||
GetComponentInChildrenAlwaysT |
Finds a component of the type T in on the same object, or on a child down the hierarchy. This method also works
in the editor and when the game object is inactive.
| |
GetComponentsInChildrenAlwaysT |
Finds all components of the type T on the same object and on a children down the hierarchy. This method also works
in the editor and when the game object is inactive.
| |
GetInterfaceComponentTInterface |
Gets an attached component that implements the interface of the type parameter.
| |
GetRequiredComponentT |
Gets a component of the given type, or fail if no such component is attached to the given component.
| |
GetRequiredComponentInChildrenT | ||
Invoke |
Invokes the given action after the given amount of time.
| |
InvokeRepeating(MonoBehaviour, Action, IGeneratorSingle) |
Invokes the given action after the given amount of time, and repeats the
action after every repeatTime seconds.
| |
InvokeRepeating(MonoBehaviour, Action, Single, Single) |
Invokes the given action after the given amount of time, and repeats the
action after every repeatTime seconds.
| |
IsInvoking | Obsolete.
Returns whether an invoke is pending on an action.
| |
TweenT(MonoBehaviour, T, T, Single, FuncT, T, Single, T, ActionT) | ||
TweenT(MonoBehaviour, T, T, Single, FuncT, T, Single, T, ActionT, FuncSingle) |