Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

UniRx.Async.Triggers

Yoshifumi Kawai edited this page Jul 22, 2018 · 1 revision

AsyncAnimatorTrigger

public class UniRx.Async.Triggers.AsyncAnimatorTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask<Int32> OnAnimatorIKAsync() Callback for setting up animation IK (inverse kinematics).
UniTask<AsyncUnit> OnAnimatorMoveAsync() Callback for processing animation movements for modifying root motion.

AsyncAwakeTrigger

public class UniRx.Async.Triggers.AsyncAwakeTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask AwakeAsync()

AsyncBeginDragTrigger

public class UniRx.Async.Triggers.AsyncBeginDragTrigger
    : MonoBehaviour, IEventSystemHandler, IBeginDragHandler

Methods

Type Name Summary
UniTask<PointerEventData> OnBeginDragAsync()

AsyncCancelTrigger

public class UniRx.Async.Triggers.AsyncCancelTrigger
    : MonoBehaviour, IEventSystemHandler, ICancelHandler

Methods

Type Name Summary
UniTask<BaseEventData> OnCancelAsync()

AsyncCanvasGroupChangedTrigger

public class UniRx.Async.Triggers.AsyncCanvasGroupChangedTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask OnCanvasGroupChangedAsync() Callback that is sent if the canvas group is changed.

AsyncCollision2DTrigger

public class UniRx.Async.Triggers.AsyncCollision2DTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask<Collision2D> OnCollisionEnter2DAsync() Sent when an incoming collider makes contact with this object's collider (2D physics only).
UniTask<Collision2D> OnCollisionExit2DAsync() Sent when a collider on another object stops touching this object's collider (2D physics only).
UniTask<Collision2D> OnCollisionStay2DAsync() Sent each frame where a collider on another object is touching this object's collider (2D physics only).

AsyncCollisionTrigger

public class UniRx.Async.Triggers.AsyncCollisionTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask<Collision> OnCollisionEnterAsync() OnCollisionEnter is called when this collider/rigidbody has begun touching another rigidbody/collider.
UniTask<Collision> OnCollisionExitAsync() OnCollisionExit is called when this collider/rigidbody has stopped touching another rigidbody/collider.
UniTask<Collision> OnCollisionStayAsync() OnCollisionStay is called once per frame for every collider/rigidbody that is touching rigidbody/collider.

AsyncDeselectTrigger

public class UniRx.Async.Triggers.AsyncDeselectTrigger
    : MonoBehaviour, IEventSystemHandler, IDeselectHandler

Methods

Type Name Summary
UniTask<BaseEventData> OnDeselectAsync()

AsyncDestroyTrigger

public class UniRx.Async.Triggers.AsyncDestroyTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask OnDestroyAsync() This function is called when the MonoBehaviour will be destroyed.

AsyncDragTrigger

public class UniRx.Async.Triggers.AsyncDragTrigger
    : MonoBehaviour, IEventSystemHandler, IDragHandler

Methods

Type Name Summary
UniTask<PointerEventData> OnDragAsync()

AsyncDropTrigger

public class UniRx.Async.Triggers.AsyncDropTrigger
    : MonoBehaviour, IEventSystemHandler, IDropHandler

Methods

Type Name Summary
UniTask<PointerEventData> OnDropAsync()

AsyncEnableDisableTrigger

public class UniRx.Async.Triggers.AsyncEnableDisableTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask OnDisableAsync() This function is called when the behaviour becomes disabled () or inactive.
UniTask OnEnableAsync() This function is called when the object becomes enabled and active.

AsyncEndDragTrigger

public class UniRx.Async.Triggers.AsyncEndDragTrigger
    : MonoBehaviour, IEventSystemHandler, IEndDragHandler

Methods

Type Name Summary
UniTask<PointerEventData> OnEndDragAsync()

AsyncFixedUpdateTrigger

public class UniRx.Async.Triggers.AsyncFixedUpdateTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask FixedUpdateAsync() This function is called every fixed framerate frame, if the MonoBehaviour is enabled.

AsyncInitializePotentialDragTrigger

public class UniRx.Async.Triggers.AsyncInitializePotentialDragTrigger
    : MonoBehaviour, IEventSystemHandler, IInitializePotentialDragHandler

Methods

Type Name Summary
UniTask<PointerEventData> OnInitializePotentialDragAsync()

AsyncJoint2DTrigger

public class UniRx.Async.Triggers.AsyncJoint2DTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask<Joint2D> OnJointBreak2DAsync()

AsyncJointTrigger

public class UniRx.Async.Triggers.AsyncJointTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask<Single> OnJointBreakAsync()

AsyncLateUpdateTrigger

public class UniRx.Async.Triggers.AsyncLateUpdateTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask LateUpdateAsync() LateUpdate is called every frame, if the Behaviour is enabled.

AsyncMouseTrigger

public class UniRx.Async.Triggers.AsyncMouseTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask OnMouseDownAsync() OnMouseDown is called when the user has pressed the mouse button while over the GUIElement or Collider.
UniTask OnMouseDragAsync() OnMouseDrag is called when the user has clicked on a GUIElement or Collider and is still holding down the mouse.
UniTask OnMouseEnterAsync() OnMouseEnter is called when the mouse entered the GUIElement or Collider.
UniTask OnMouseExitAsync() OnMouseExit is called when the mouse is not any longer over the GUIElement or Collider.
UniTask OnMouseOverAsync() OnMouseOver is called every frame while the mouse is over the GUIElement or Collider.
UniTask OnMouseUpAsButtonAsync() OnMouseUpAsButton is only called when the mouse is released over the same GUIElement or Collider as it was pressed.
UniTask OnMouseUpAsync() OnMouseUp is called when the user has released the mouse button.

AsyncMoveTrigger

public class UniRx.Async.Triggers.AsyncMoveTrigger
    : MonoBehaviour, IEventSystemHandler, IMoveHandler

Methods

Type Name Summary
UniTask<AxisEventData> OnMoveAsync()

AsyncParticleTrigger

public class UniRx.Async.Triggers.AsyncParticleTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask<GameObject> OnParticleCollisionAsync() OnParticleCollision is called when a particle hits a collider.
UniTask OnParticleTriggerAsync() OnParticleTrigger is called when any particles in a particle system meet the conditions in the trigger module.

AsyncPointerClickTrigger

public class UniRx.Async.Triggers.AsyncPointerClickTrigger
    : MonoBehaviour, IEventSystemHandler, IPointerClickHandler

Methods

Type Name Summary
UniTask<PointerEventData> OnPointerClickAsync()

AsyncPointerDownTrigger

public class UniRx.Async.Triggers.AsyncPointerDownTrigger
    : MonoBehaviour, IEventSystemHandler, IPointerDownHandler

Methods

Type Name Summary
UniTask<PointerEventData> OnPointerDownAsync()

AsyncPointerEnterTrigger

public class UniRx.Async.Triggers.AsyncPointerEnterTrigger
    : MonoBehaviour, IEventSystemHandler, IPointerEnterHandler

Methods

Type Name Summary
UniTask<PointerEventData> OnPointerEnterAsync()

AsyncPointerExitTrigger

public class UniRx.Async.Triggers.AsyncPointerExitTrigger
    : MonoBehaviour, IEventSystemHandler, IPointerExitHandler

Methods

Type Name Summary
UniTask<PointerEventData> OnPointerExitAsync()

AsyncPointerUpTrigger

public class UniRx.Async.Triggers.AsyncPointerUpTrigger
    : MonoBehaviour, IEventSystemHandler, IPointerUpHandler

Methods

Type Name Summary
UniTask<PointerEventData> OnPointerUpAsync()

AsyncRectTransformTrigger

public class UniRx.Async.Triggers.AsyncRectTransformTrigger
    : MonoBehaviour

Methods

Type Name Summary
void OnRectTransformDimensionsChange()
UniTask OnRectTransformDimensionsChangeAsync() Callback that is sent if an associated RectTransform has it's dimensions changed.
void OnRectTransformRemoved()
UniTask OnRectTransformRemovedAsync() Callback that is sent if an associated RectTransform is removed.

AsyncScrollTrigger

public class UniRx.Async.Triggers.AsyncScrollTrigger
    : MonoBehaviour, IEventSystemHandler, IScrollHandler

Methods

Type Name Summary
UniTask<PointerEventData> OnScrollAsync()

AsyncSelectTrigger

public class UniRx.Async.Triggers.AsyncSelectTrigger
    : MonoBehaviour, IEventSystemHandler, ISelectHandler

Methods

Type Name Summary
UniTask<BaseEventData> OnSelectAsync()

AsyncStartTrigger

public class UniRx.Async.Triggers.AsyncStartTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask StartAsync()

AsyncStateMachineTrigger

public class UniRx.Async.Triggers.AsyncStateMachineTrigger
    : StateMachineBehaviour

Methods

Type Name Summary
void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, Int32 layerIndex)
UniTask<OnStateInfo> OnStateEnterAsync()
void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, Int32 layerIndex)
UniTask<OnStateInfo> OnStateExitAsync()
void OnStateIK(Animator animator, AnimatorStateInfo stateInfo, Int32 layerIndex)
UniTask<OnStateInfo> OnStateIKAsync()
void OnStateMachineEnter(Animator animator, Int32 stateMachinePathHash)
UniTask<OnStateMachineInfo> OnStateMachineEnterAsync()
void OnStateMachineExit(Animator animator, Int32 stateMachinePathHash)
UniTask<OnStateMachineInfo> OnStateMachineExitAsync()
void OnStateUpdate(Animator animator, AnimatorStateInfo stateInfo, Int32 layerIndex)
UniTask<OnStateInfo> OnStateUpdateAsync()

AsyncSubmitTrigger

public class UniRx.Async.Triggers.AsyncSubmitTrigger
    : MonoBehaviour, IEventSystemHandler, ISubmitHandler

Methods

Type Name Summary
UniTask<BaseEventData> OnSubmitAsync()

AsyncTransformChangedTrigger

public class UniRx.Async.Triggers.AsyncTransformChangedTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask OnBeforeTransformParentChangedAsync() Callback sent to the graphic before a Transform parent change occurs.
UniTask OnTransformChildrenChangedAsync() This function is called when the list of children of the transform of the GameObject has changed.
UniTask OnTransformParentChangedAsync() This function is called when the parent property of the transform of the GameObject has changed.

AsyncTrigger2DTrigger

public class UniRx.Async.Triggers.AsyncTrigger2DTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask<Collider2D> OnTriggerEnter2DAsync() Sent when another object enters a trigger collider attached to this object (2D physics only).
UniTask<Collider2D> OnTriggerExit2DAsync() Sent when another object leaves a trigger collider attached to this object (2D physics only).
UniTask<Collider2D> OnTriggerStay2DAsync() Sent each frame where another object is within a trigger collider attached to this object (2D physics only).

AsyncTriggerExtensions

public static class UniRx.Async.Triggers.AsyncTriggerExtensions

Static Methods

Type Name Summary
UniTask AwakeAsync(this GameObject gameObject)
UniTask AwakeAsync(this Component component)
AsyncAnimatorTrigger GetAsyncAnimatorTrigger(this GameObject gameObject) Get for OnAnimatorIKAsync
AsyncAnimatorTrigger GetAsyncAnimatorTrigger(this Component component) Get for OnAnimatorIKAsync
AsyncAwakeTrigger GetAsyncAwakeTrigger(this GameObject gameObject) Get for AwakeAsync.
AsyncAwakeTrigger GetAsyncAwakeTrigger(this Component component) Get for AwakeAsync.
AsyncBeginDragTrigger GetAsyncBeginDragTrigger(this GameObject gameObject) Get for OnBeginDragAsync.
AsyncBeginDragTrigger GetAsyncBeginDragTrigger(this Component component) Get for OnBeginDragAsync.
AsyncCancelTrigger GetAsyncCancelTrigger(this GameObject gameObject) Get for OnCancelAsync.
AsyncCancelTrigger GetAsyncCancelTrigger(this Component component) Get for OnCancelAsync.
AsyncCanvasGroupChangedTrigger GetAsyncCanvasGroupChangedTrigger(this GameObject gameObject) Get for OnCanvasGroupChangedAsync.
AsyncCanvasGroupChangedTrigger GetAsyncCanvasGroupChangedTrigger(this Component component) Get for OnCanvasGroupChangedAsync.
AsyncCollision2DTrigger GetAsyncCollision2DTrigger(this GameObject gameObject) Get for OnCollisionEnter2DAsync
AsyncCollision2DTrigger GetAsyncCollision2DTrigger(this Component component) Get for OnCollisionEnter2DAsync
AsyncCollisionTrigger GetAsyncCollisionTrigger(this GameObject gameObject) Get for OnCollisionEnterAsync
AsyncCollisionTrigger GetAsyncCollisionTrigger(this Component component) Get for OnCollisionEnterAsync
AsyncDeselectTrigger GetAsyncDeselectTrigger(this GameObject gameObject) Get for OnDeselectAsync.
AsyncDeselectTrigger GetAsyncDeselectTrigger(this Component component) Get for OnDeselectAsync.
AsyncDestroyTrigger GetAsyncDestroyTrigger(this GameObject gameObject) Get for OnDestroyAsync.
AsyncDestroyTrigger GetAsyncDestroyTrigger(this Component component) Get for OnDestroyAsync.
AsyncDragTrigger GetAsyncDragTrigger(this GameObject gameObject) Get for OnDragAsync.
AsyncDragTrigger GetAsyncDragTrigger(this Component component) Get for OnDragAsync.
AsyncDropTrigger GetAsyncDropTrigger(this GameObject gameObject) Get for OnDropAsync.
AsyncDropTrigger GetAsyncDropTrigger(this Component component) Get for OnDropAsync.
AsyncEnableDisableTrigger GetAsyncEnableDisableTrigger(this GameObject gameObject) Get for OnEnableAsync
AsyncEnableDisableTrigger GetAsyncEnableDisableTrigger(this Component component) Get for OnEnableAsync
AsyncEndDragTrigger GetAsyncEndDragTrigger(this GameObject gameObject) Get for OnEndDragAsync.
AsyncEndDragTrigger GetAsyncEndDragTrigger(this Component component) Get for OnEndDragAsync.
AsyncFixedUpdateTrigger GetAsyncFixedUpdateTrigger(this GameObject gameObject) Get for FixedUpdateAsync.
AsyncFixedUpdateTrigger GetAsyncFixedUpdateTrigger(this Component component) Get for FixedUpdateAsync.
AsyncInitializePotentialDragTrigger GetAsyncInitializePotentialDragTrigger(this GameObject gameObject) Get for OnInitializePotentialDragAsync.
AsyncInitializePotentialDragTrigger GetAsyncInitializePotentialDragTrigger(this Component component) Get for OnInitializePotentialDragAsync.
AsyncJoint2DTrigger GetAsyncJoint2DTrigger(this GameObject gameObject) Get for OnJointBreak2DAsync.
AsyncJoint2DTrigger GetAsyncJoint2DTrigger(this Component component) Get for OnJointBreak2DAsync.
AsyncJointTrigger GetAsyncJointTrigger(this GameObject gameObject) Get for OnJointBreakAsync.
AsyncJointTrigger GetAsyncJointTrigger(this Component component) Get for OnJointBreakAsync.
AsyncLateUpdateTrigger GetAsyncLateUpdateTrigger(this GameObject gameObject) Get for LateUpdateAsync.
AsyncLateUpdateTrigger GetAsyncLateUpdateTrigger(this Component component) Get for LateUpdateAsync.
AsyncMouseTrigger GetAsyncMouseTrigger(this GameObject gameObject) Get for OnMouseDownAsync
AsyncMouseTrigger GetAsyncMouseTrigger(this Component component) Get for OnMouseDownAsync
AsyncMoveTrigger GetAsyncMoveTrigger(this GameObject gameObject) Get for OnMoveAsync.
AsyncMoveTrigger GetAsyncMoveTrigger(this Component component) Get for OnMoveAsync.
AsyncParticleTrigger GetAsyncParticleTrigger(this GameObject gameObject) Get for OnParticleCollisionAsync
AsyncParticleTrigger GetAsyncParticleTrigger(this Component component) Get for OnParticleCollisionAsync
AsyncPointerClickTrigger GetAsyncPointerClickTrigger(this GameObject gameObject) Get for OnPointerClickAsync.
AsyncPointerClickTrigger GetAsyncPointerClickTrigger(this Component component) Get for OnPointerClickAsync.
AsyncPointerDownTrigger GetAsyncPointerDownTrigger(this GameObject gameObject) Get for OnPointerDownAsync.
AsyncPointerDownTrigger GetAsyncPointerDownTrigger(this Component component) Get for OnPointerDownAsync.
AsyncPointerEnterTrigger GetAsyncPointerEnterTrigger(this GameObject gameObject) Get for OnPointerEnterAsync.
AsyncPointerEnterTrigger GetAsyncPointerEnterTrigger(this Component component) Get for OnPointerEnterAsync.
AsyncPointerExitTrigger GetAsyncPointerExitTrigger(this GameObject gameObject) Get for OnPointerExitAsync.
AsyncPointerExitTrigger GetAsyncPointerExitTrigger(this Component component) Get for OnPointerExitAsync.
AsyncPointerUpTrigger GetAsyncPointerUpTrigger(this GameObject gameObject) Get for OnPointerUpAsync.
AsyncPointerUpTrigger GetAsyncPointerUpTrigger(this Component component) Get for OnPointerUpAsync.
AsyncRectTransformTrigger GetAsyncRectTransformTrigger(this GameObject gameObject) Get for OnRectTransformDimensionsChange
AsyncRectTransformTrigger GetAsyncRectTransformTrigger(this Component component) Get for OnRectTransformDimensionsChange
AsyncScrollTrigger GetAsyncScrollTrigger(this GameObject gameObject) Get for OnScrollAsync.
AsyncScrollTrigger GetAsyncScrollTrigger(this Component component) Get for OnScrollAsync.
AsyncSelectTrigger GetAsyncSelectTrigger(this GameObject gameObject) Get for OnSelectAsync.
AsyncSelectTrigger GetAsyncSelectTrigger(this Component component) Get for OnSelectAsync.
AsyncStartTrigger GetAsyncStartTrigger(this GameObject gameObject) Get for StartAsync.
AsyncStartTrigger GetAsyncStartTrigger(this Component component) Get for StartAsync.
AsyncSubmitTrigger GetAsyncSubmitTrigger(this GameObject gameObject) Get for OnSubmitAsync.
AsyncSubmitTrigger GetAsyncSubmitTrigger(this Component component) Get for OnSubmitAsync.
AsyncTransformChangedTrigger GetAsyncTransformChangedTrigger(this GameObject gameObject) Get for OnBeforeTransformParentChangedAsync
AsyncTransformChangedTrigger GetAsyncTransformChangedTrigger(this Component component) Get for OnBeforeTransformParentChangedAsync
AsyncTrigger2DTrigger GetAsyncTrigger2DTrigger(this GameObject gameObject) Get for OnTriggerEnter2DAsync
AsyncTrigger2DTrigger GetAsyncTrigger2DTrigger(this Component component) Get for OnTriggerEnter2DAsync
AsyncTriggerTrigger GetAsyncTriggerTrigger(this GameObject gameObject) Get for OnTriggerEnterAsync
AsyncTriggerTrigger GetAsyncTriggerTrigger(this Component component) Get for OnTriggerEnterAsync
AsyncUpdateSelectedTrigger GetAsyncUpdateSelectedTrigger(this GameObject gameObject) Get for OnUpdateSelectedAsync.
AsyncUpdateSelectedTrigger GetAsyncUpdateSelectedTrigger(this Component component) Get for OnUpdateSelectedAsync.
AsyncUpdateTrigger GetAsyncUpdateTrigger(this GameObject gameObject) Get for UpdateAsync.
AsyncUpdateTrigger GetAsyncUpdateTrigger(this Component component) Get for UpdateAsync.
AsyncVisibleTrigger GetAsyncVisibleTrigger(this GameObject gameObject) Get for OnBecameInvisibleAsync
AsyncVisibleTrigger GetAsyncVisibleTrigger(this Component component) Get for OnBecameInvisibleAsync
UniTask OnDestroyAsync(this GameObject gameObject) This function is called when the MonoBehaviour will be destroyed.
UniTask OnDestroyAsync(this Component component) This function is called when the MonoBehaviour will be destroyed.
UniTask StartAsync(this GameObject gameObject)
UniTask StartAsync(this Component component)

AsyncTriggerTrigger

public class UniRx.Async.Triggers.AsyncTriggerTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask<Collider> OnTriggerEnterAsync() OnTriggerEnter is called when the Collider other enters the trigger.
UniTask<Collider> OnTriggerExitAsync() OnTriggerExit is called when the Collider other has stopped touching the trigger.
UniTask<Collider> OnTriggerStayAsync() OnTriggerStay is called once per frame for every Collider other that is touching the trigger.

AsyncUpdateSelectedTrigger

public class UniRx.Async.Triggers.AsyncUpdateSelectedTrigger
    : MonoBehaviour, IEventSystemHandler, IUpdateSelectedHandler

Methods

Type Name Summary
UniTask<BaseEventData> OnUpdateSelectedAsync()

AsyncUpdateTrigger

public class UniRx.Async.Triggers.AsyncUpdateTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask UpdateAsync() Update is called every frame, if the MonoBehaviour is enabled.

AsyncVisibleTrigger

public class UniRx.Async.Triggers.AsyncVisibleTrigger
    : MonoBehaviour

Methods

Type Name Summary
UniTask OnBecameInvisibleAsync() OnBecameInvisible is called when the renderer is no longer visible by any camera.
UniTask OnBecameVisibleAsync() OnBecameVisible is called when the renderer became visible by any camera.