Implement OnDrawGizmosSelected to draw a gizmo if the object is selected. Implement OnDrawGizmos if you want to draw gizmos that are also pickable and always drawn. This function is called when the behaviour becomes disabled () or inactive.Ĭalled on the client when the connection was lost or you disconnected from the server. This function is called when the MonoBehaviour will be destroyed. OnControllerColliderHit is called when the controller hits a collider while performing a Move. Sent each frame where a collider on another object is touching this object's collider (2D physics only).Ĭalled on the client when you have successfully connected to a server. OnCollisionStay is called once per frame for every collider/rigidbody that is touching rigidbody/collider. Sent when a collider on another object stops touching this object's collider (2D physics only). OnCollisionExit is called when this collider/rigidbody has stopped touching another rigidbody/collider. Sent when an incoming collider makes contact with this object's collider (2D physics only). OnCollisionEnter is called when this collider/rigidbody has begun touching another rigidbody/collider. OnBecameVisible is called when the renderer became visible by any camera. OnBecameInvisible is called when the renderer is no longer visible by any camera. If OnAudioFilterRead is implemented, Unity will insert a custom filter into the audio DSP chain. Sent to all game objects before the application is quit. Sent to all game objects when the player pauses. Sent to all game objects when the player gets or loses focus. LateUpdate is called every frame, if the Behaviour is enabled.Ĭallback for setting up animation IK (inverse kinematics).Ĭallback for processing animation movements for modifying root motion. This function is called every fixed framerate frame, if the MonoBehaviour is enabled. See MonoBehaviour.OnRectTransformParentChanged.Īwake is called when the script instance is being loaded. The call is also made to all child rect transforms, even if the child transform itself doesn't change - as it could have, depending on its anchoring. This callback is called if an associated RectTransform has its dimensions changed. See LayoutGroup.OnDidApplyAnimationProperties. See MonoBehaviour.OnBeforeTransformParentChanged.Ĭalled when the state of the parent Canvas is changed. Returns true if the native representation of the behaviour has been destroyed. Returns true if the GameObject and the Component are active. Stops the first coroutine named methodName, or the coroutine stored in routine running on this behaviour. Stops all coroutines running on this behaviour. ![]() Invokes the method methodName in time seconds, then repeatedly every repeatRate seconds. Invokes the method methodName in time seconds. Returns all components of Type type in the GameObject or any of its parents.Ĭalls the method named methodName on every MonoBehaviour in this game object.Ĭalls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour.Ĭancels all Invoke calls on this MonoBehaviour. ![]() Returns all components of Type type in the GameObject or any of its children. Returns all components of Type type in the GameObject. Returns the component of Type type in the GameObject or any of its parents. Returns the component of Type type in the GameObject or any of its children using depth first search. Returns the component of Type type if the game object has one attached, null if it doesn't. Calls the method named methodName on every MonoBehaviour in this game object or any of its children.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |