123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- using UnityEngine;
- using UnityEngine.EventSystems;
- namespace Rokid.UXR.Interaction
- {
- /// <summary>
- /// Triggered when the ray enters
- /// </summary>
- public interface IRayPointerEnter
- {
- void OnRayPointerEnter();
- }
- /// <summary>
- /// Triggered when the ray exits
- /// </summary>
- public interface IRayPointerExit
- {
- void OnRayPointerExit();
- }
- /// <summary>
- /// Triggered when mouse ray starts
- /// </summary>
- public interface IRayBeginDrag
- {
- void OnRayBeginDrag(PointerEventData eventData);
- }
- /// <summary>
- /// Triggered when the ray drag ends
- /// </summary>
- public interface IRayEndDrag
- {
- void OnRayEndDrag();
- }
- /// <summary>
- /// Triggered when ray dragging
- /// </summary>
- public interface IRayDrag
- {
- void OnRayDrag(Vector3 delta);
- }
- /// <summary>
- /// Triggered when ray hovering
- /// </summary>
- public interface IRayPointerHover
- {
- void OnRayPointerHover();
- }
- /// <summary>
- /// Triggered when ray click
- /// </summary>
- public interface IRayPointerClick
- {
- void OnRayPointerClick();
- }
- public interface IBezierCurveDrag
- {
- /// <summary>
- /// Whether UI dragging with Pinch gesture is supported
- /// </summary>
- /// <returns></returns>
- bool IsEnablePinchBezierCurve();
- /// <summary>
- /// Whether to support dragging objects using Grip gestures
- /// </summary>
- /// <returns></returns>
- bool IsEnableGripBezierCurve();
- /// <summary>
- /// Whether it is currently in drag state
- /// </summary>
- /// <returns></returns>
- bool IsInBezierCurveDragging();
- /// <summary>
- /// Returns the world coordinates of the drag point
- /// </summary>
- /// <returns></returns>
- Vector3 GetBezierCurveEndPoint();
- /// <summary>
- /// Returns the world coordinates of the drag point
- /// </summary>
- /// <returns></returns>
- Vector3 GetBezierCurveEndNormal();
- }
- }
|