Click or drag to resize

MonoBehaviourExtensions Class

Provides useful extension methods for MonoBehaviours.
Inheritance Hierarchy
SystemObject
  Gamelogic.ExtensionsMonoBehaviourExtensions

Namespace:  Gamelogic.Extensions
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[VersionAttribute(1, 0, 0)]
public static class MonoBehaviourExtensions

The MonoBehaviourExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCancelInvoke Obsolete.
Cancels the action if it was scheduled.
Public methodStatic memberCloneT(T)
Clones an object.
Public methodStatic memberCloneT(T, Int32)
Clones an object.
Public methodStatic memberFindChild(Component, String)
Public methodStatic memberFindChild(Component, String, Boolean)
Public methodStatic memberGetComponentInChildrenAlwaysT
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.
Public methodStatic memberGetComponentsInChildrenAlwaysT
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.
Public methodStatic memberGetInterfaceComponentTInterface
Gets an attached component that implements the interface of the type parameter.
Public methodStatic memberGetRequiredComponentT
Gets a component of the given type, or fail if no such component is attached to the given component.
Public methodStatic memberGetRequiredComponentInChildrenT
Public methodStatic memberInvoke
Invokes the given action after the given amount of time.
Public methodStatic memberInvokeRepeating(MonoBehaviour, Action, IGeneratorSingle)
Invokes the given action after the given amount of time, and repeats the action after every repeatTime seconds.
Public methodStatic memberInvokeRepeating(MonoBehaviour, Action, Single, Single)
Invokes the given action after the given amount of time, and repeats the action after every repeatTime seconds.
Public methodStatic memberIsInvoking Obsolete.
Returns whether an invoke is pending on an action.
Public methodStatic memberTweenT(MonoBehaviour, T, T, Single, FuncT, T, Single, T, ActionT)
Public methodStatic memberTweenT(MonoBehaviour, T, T, Single, FuncT, T, Single, T, ActionT, FuncSingle)
Top
See Also