Class ObservableTriggerExtensions
- Namespace
- R3.Triggers
public static class ObservableTriggerExtensionsInheritance
Inherited Members
Methods
FixedUpdateAsObservable(Component)
This function is called every fixed framerate frame, if the MonoBehaviour is enabled.
public static Observable<Unit> FixedUpdateAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
FixedUpdateAsObservable(GameObject)
This function is called every fixed framerate frame, if the MonoBehaviour is enabled.
public static Observable<Unit> FixedUpdateAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
LateUpdateAsObservable(Component)
LateUpdate is called every frame, if the Behaviour is enabled.
public static Observable<Unit> LateUpdateAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
LateUpdateAsObservable(GameObject)
LateUpdate is called every frame, if the Behaviour is enabled.
public static Observable<Unit> LateUpdateAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnAnimatorIKAsObservable(Component)
Callback for setting up animation IK (inverse kinematics).
public static Observable<int> OnAnimatorIKAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<int>
OnAnimatorIKAsObservable(GameObject)
Callback for setting up animation IK (inverse kinematics).
public static Observable<int> OnAnimatorIKAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<int>
OnAnimatorMoveAsObservable(Component)
Callback for processing animation movements for modifying root motion.
public static Observable<Unit> OnAnimatorMoveAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnAnimatorMoveAsObservable(GameObject)
Callback for processing animation movements for modifying root motion.
public static Observable<Unit> OnAnimatorMoveAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnBecameInvisibleAsObservable(Component)
OnBecameInvisible is called when the renderer is no longer visible by any camera.
public static Observable<Unit> OnBecameInvisibleAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnBecameInvisibleAsObservable(GameObject)
OnBecameInvisible is called when the renderer is no longer visible by any camera.
public static Observable<Unit> OnBecameInvisibleAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnBecameVisibleAsObservable(Component)
OnBecameVisible is called when the renderer became visible by any camera.
public static Observable<Unit> OnBecameVisibleAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnBecameVisibleAsObservable(GameObject)
OnBecameVisible is called when the renderer became visible by any camera.
public static Observable<Unit> OnBecameVisibleAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnBeforeTransformParentChangedAsObservable(Component)
Callback sent to the graphic before a Transform parent change occurs.
public static Observable<Unit> OnBeforeTransformParentChangedAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnBeforeTransformParentChangedAsObservable(GameObject)
Callback sent to the graphic before a Transform parent change occurs.
public static Observable<Unit> OnBeforeTransformParentChangedAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnBeginDragAsObservable(UIBehaviour)
public static Observable<PointerEventData> OnBeginDragAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<PointerEventData>
OnCancelAsObservable(UIBehaviour)
public static Observable<BaseEventData> OnCancelAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<BaseEventData>
OnCanvasGroupChangedAsObservable(Component)
Callback that is sent if the canvas group is changed.
public static Observable<Unit> OnCanvasGroupChangedAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnCanvasGroupChangedAsObservable(GameObject)
Callback that is sent if the canvas group is changed.
public static Observable<Unit> OnCanvasGroupChangedAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnDeselectAsObservable(UIBehaviour)
public static Observable<BaseEventData> OnDeselectAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<BaseEventData>
OnDestroyAsObservable(Component)
This function is called when the MonoBehaviour will be destroyed.
public static Observable<Unit> OnDestroyAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnDestroyAsObservable(GameObject)
This function is called when the MonoBehaviour will be destroyed.
public static Observable<Unit> OnDestroyAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnDisableAsObservable(Component)
This function is called when the behaviour becomes disabled () or inactive.
public static Observable<Unit> OnDisableAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnDisableAsObservable(GameObject)
This function is called when the behaviour becomes disabled () or inactive.
public static Observable<Unit> OnDisableAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnDragAsObservable(UIBehaviour)
public static Observable<PointerEventData> OnDragAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<PointerEventData>
OnDropAsObservable(UIBehaviour)
public static Observable<PointerEventData> OnDropAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<PointerEventData>
OnEnableAsObservable(Component)
This function is called when the object becomes enabled and active.
public static Observable<Unit> OnEnableAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnEnableAsObservable(GameObject)
This function is called when the object becomes enabled and active.
public static Observable<Unit> OnEnableAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnEndDragAsObservable(UIBehaviour)
public static Observable<PointerEventData> OnEndDragAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<PointerEventData>
OnInitializePotentialDragAsObservable(UIBehaviour)
public static Observable<PointerEventData> OnInitializePotentialDragAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<PointerEventData>
OnMouseDownAsObservable(Component)
OnMouseDown is called when the user has pressed the mouse button while over the GUIElement or Collider.
public static Observable<Unit> OnMouseDownAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnMouseDownAsObservable(GameObject)
OnMouseDown is called when the user has pressed the mouse button while over the GUIElement or Collider.
public static Observable<Unit> OnMouseDownAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnMouseDragAsObservable(Component)
OnMouseDrag is called when the user has clicked on a GUIElement or Collider and is still holding down the mouse.
public static Observable<Unit> OnMouseDragAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnMouseDragAsObservable(GameObject)
OnMouseDrag is called when the user has clicked on a GUIElement or Collider and is still holding down the mouse.
public static Observable<Unit> OnMouseDragAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnMouseEnterAsObservable(Component)
OnMouseEnter is called when the mouse entered the GUIElement or Collider.
public static Observable<Unit> OnMouseEnterAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnMouseEnterAsObservable(GameObject)
OnMouseEnter is called when the mouse entered the GUIElement or Collider.
public static Observable<Unit> OnMouseEnterAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnMouseExitAsObservable(Component)
OnMouseExit is called when the mouse is not any longer over the GUIElement or Collider.
public static Observable<Unit> OnMouseExitAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnMouseExitAsObservable(GameObject)
OnMouseExit is called when the mouse is not any longer over the GUIElement or Collider.
public static Observable<Unit> OnMouseExitAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnMouseOverAsObservable(Component)
OnMouseOver is called every frame while the mouse is over the GUIElement or Collider.
public static Observable<Unit> OnMouseOverAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnMouseOverAsObservable(GameObject)
OnMouseOver is called every frame while the mouse is over the GUIElement or Collider.
public static Observable<Unit> OnMouseOverAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnMouseUpAsButtonAsObservable(Component)
OnMouseUpAsButton is only called when the mouse is released over the same GUIElement or Collider as it was pressed.
public static Observable<Unit> OnMouseUpAsButtonAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnMouseUpAsButtonAsObservable(GameObject)
OnMouseUpAsButton is only called when the mouse is released over the same GUIElement or Collider as it was pressed.
public static Observable<Unit> OnMouseUpAsButtonAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnMouseUpAsObservable(Component)
OnMouseUp is called when the user has released the mouse button.
public static Observable<Unit> OnMouseUpAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnMouseUpAsObservable(GameObject)
OnMouseUp is called when the user has released the mouse button.
public static Observable<Unit> OnMouseUpAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnMoveAsObservable(UIBehaviour)
public static Observable<AxisEventData> OnMoveAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<AxisEventData>
OnParticleCollisionAsObservable(Component)
OnParticleCollision is called when a particle hits a collider.
public static Observable<GameObject> OnParticleCollisionAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<GameObject>
OnParticleCollisionAsObservable(GameObject)
OnParticleCollision is called when a particle hits a collider.
public static Observable<GameObject> OnParticleCollisionAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<GameObject>
OnParticleTriggerAsObservable(GameObject)
OnParticleTrigger is called when any particles in a particle system meet the conditions in the trigger module.
public static Observable<Unit> OnParticleTriggerAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnPointerClickAsObservable(UIBehaviour)
public static Observable<PointerEventData> OnPointerClickAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<PointerEventData>
OnPointerDownAsObservable(UIBehaviour)
public static Observable<PointerEventData> OnPointerDownAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<PointerEventData>
OnPointerEnterAsObservable(UIBehaviour)
public static Observable<PointerEventData> OnPointerEnterAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<PointerEventData>
OnPointerExitAsObservable(UIBehaviour)
public static Observable<PointerEventData> OnPointerExitAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<PointerEventData>
OnPointerUpAsObservable(UIBehaviour)
public static Observable<PointerEventData> OnPointerUpAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<PointerEventData>
OnRectTransformDimensionsChangeAsObservable(Component)
Callback that is sent if an associated RectTransform has it's dimensions changed.
public static Observable<Unit> OnRectTransformDimensionsChangeAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnRectTransformDimensionsChangeAsObservable(GameObject)
Callback that is sent if an associated RectTransform has it's dimensions changed.
public static Observable<Unit> OnRectTransformDimensionsChangeAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnRectTransformRemovedAsObservable(Component)
Callback that is sent if an associated RectTransform is removed.
public static Observable<Unit> OnRectTransformRemovedAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnRectTransformRemovedAsObservable(GameObject)
Callback that is sent if an associated RectTransform is removed.
public static Observable<Unit> OnRectTransformRemovedAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnScrollAsObservable(UIBehaviour)
public static Observable<PointerEventData> OnScrollAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<PointerEventData>
OnSelectAsObservable(UIBehaviour)
public static Observable<BaseEventData> OnSelectAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<BaseEventData>
OnSubmitAsObservable(UIBehaviour)
public static Observable<BaseEventData> OnSubmitAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<BaseEventData>
OnTransformChildrenChangedAsObservable(Component)
This function is called when the list of children of the transform of the GameObject has changed.
public static Observable<Unit> OnTransformChildrenChangedAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnTransformChildrenChangedAsObservable(GameObject)
This function is called when the list of children of the transform of the GameObject has changed.
public static Observable<Unit> OnTransformChildrenChangedAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnTransformParentChangedAsObservable(Component)
This function is called when the parent property of the transform of the GameObject has changed.
public static Observable<Unit> OnTransformParentChangedAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
OnTransformParentChangedAsObservable(GameObject)
This function is called when the parent property of the transform of the GameObject has changed.
public static Observable<Unit> OnTransformParentChangedAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>
OnUpdateSelectedAsObservable(UIBehaviour)
public static Observable<BaseEventData> OnUpdateSelectedAsObservable(this UIBehaviour component)Parameters
componentUIBehaviour
Returns
- Observable<BaseEventData>
UpdateAsObservable(Component)
Update is called every frame, if the MonoBehaviour is enabled.
public static Observable<Unit> UpdateAsObservable(this Component component)Parameters
componentComponent
Returns
- Observable<Unit>
UpdateAsObservable(GameObject)
Update is called every frame, if the MonoBehaviour is enabled.
public static Observable<Unit> UpdateAsObservable(this GameObject gameObject)Parameters
gameObjectGameObject
Returns
- Observable<Unit>