Class GameFrame
This class provides hooks for the Update and LateUpdate frame functions invoked by Unity. Original code comes from Bloodstone
public class GameFrame : MonoBehaviour
- Inheritance
-
Il2CppObjectBaseObjectObjectComponentBehaviourMonoBehaviourGameFrame
- Inherited Members
-
MonoBehaviour.RaiseCancellation()MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StartCoroutine(IEnumerator)MonoBehaviour.StartCoroutine_Auto(IEnumerator)MonoBehaviour.StopCoroutine(IEnumerator)MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.print(Object)MonoBehaviour.Internal_CancelInvokeAll(MonoBehaviour)MonoBehaviour.Internal_IsInvokingAll(MonoBehaviour)MonoBehaviour.IsObjectMonoBehaviour(Object)MonoBehaviour.StartCoroutineManaged2(IEnumerator)MonoBehaviour.StopCoroutineManaged(Coroutine)MonoBehaviour.StopCoroutineFromEnumeratorManaged(IEnumerator)MonoBehaviour.GetScriptClassName()MonoBehaviour.OnCancellationTokenCreated()MonoBehaviour.m_CancellationTokenSourceMonoBehaviour.destroyCancellationTokenMonoBehaviour.useGUILayoutBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent(Type)Component.GetComponent<T>()Component.TryGetComponent(Type, out Component)Component.TryGetComponent<T>(out T)Component.GetComponentInChildren(Type)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentsInChildren<T>(List<T>)Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents(Type)Component.GetComponentsForListInternal(Type, Object)Component.GetComponents(Type, List<Component>)Component.GetComponents<T>(List<T>)Component.GetComponents<T>()Component.GetComponentsInChildren(Type)Component.GetComponentInParent(Type)Component.GetComponentsInParent(Type)Component.GetComponentIndex()Component.transformComponent.gameObjectComponent.tagObject.GetInstanceID()Object.GetHashCode()Object.Equals(Object)Object.CompareBaseObjects(Object, Object)Object.IsNativeObjectAlive(Object)Object.GetCachedPtr()Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)Object.DontDestroyOnLoad(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindObjectOfType(Type)Object.ToString()Object.GetOffsetOfInstanceIDInCPlusPlusObject()Object.Internal_CloneSingle(Object)Object.Internal_InstantiateSingle(Object, Vector3, Quaternion)Object.Internal_InstantiateSingleWithParent(Object, Transform, Vector3, Quaternion)Object.ToString(Object)Object.GetName(Object)Object.Internal_InstantiateSingle_Injected(Object, ref Vector3, ref Quaternion)Object.Internal_InstantiateSingleWithParent_Injected(Object, Transform, ref Vector3, ref Quaternion)Object.EnsureRunningOnMainThread()Object.Instantiate(Object, Scene)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T, Vector3, Quaternion)Object.FindObjectsOfType(Type)Object.FindObjectsByType(Type, FindObjectsSortMode)Object.DestroyObject(Object)Object.FindSceneObjectsOfType(Type)Object.FindObjectsOfTypeIncludingAssets(Type)Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.FindObjectsOfTypeAll(Type)Object.FindFirstObjectByType(Type)Object.FindAnyObjectByType(Type)Object.FindFirstObjectByType(Type, FindObjectsInactive)Object.FindAnyObjectByType(Type, FindObjectsInactive)Object.CurrentThreadIsMainThread()Object.Internal_CloneSingleWithScene(Object, Scene)Object.IsPersistent(Object)Object.MarkDirty()Object.Internal_CloneSingleWithScene_Injected(Object, ref Scene)Object.m_CachedPtrObject.OffsetOfInstanceIDInCPlusPlusObjectObject.objectIsNullMessageObject.cloneDestroyedMessageObject.nameObject.hideFlagsObject.Equals(Object, Object)Object.Finalize()Object.GetIl2CppType()Object.MemberwiseClone()Object.ReferenceEquals(Object, Object)Object.InternalGetHashCode(Object)Il2CppObjectBase.Cast<T>()Il2CppObjectBase.Unbox<T>()Il2CppObjectBase.TryCast<T>()Il2CppObjectBase.ObjectClassIl2CppObjectBase.PointerIl2CppObjectBase.WasCollected
- Extension Methods
Methods
Initialize(BasePlugin)
public static void Initialize(BasePlugin plugin)
Parameters
plugin
BasePlugin
Uninitialize()
public static void Uninitialize()
Events
OnLateUpdate
This event will be emitted on every LateUpdate call. The same considerations as with the OnUpdate event apply.
public static event GameFrameUpdateEventHandler? OnLateUpdate
Event Type
OnUpdate
This event will be emitted on every Update call. It may be more performant to inject your own MonoBehavior if you do not need to be invoked every frame.
public static event GameFrameUpdateEventHandler? OnUpdate