This commit is contained in:
2026-05-19 17:39:03 +07:00
parent bf0ebe447d
commit 5da832bb57
559 changed files with 69543 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
using UnityEngine;
namespace Rive.Components
{
/// <summary>
/// Pointer data delivered by input providers and propagated through the panel/widget pipeline.
/// </summary>
public readonly struct PanelPointerEvent
{
public readonly Vector2 Position;
public readonly int PointerId;
/// <summary>
/// Creates a new pointer event for panel input propagation.
/// </summary>
/// <param name="position">
/// The normalized point in panel space [0,1] where (0,0) is bottom-left and (1,1) is top-right.
/// </param>
/// <param name="pointerId">The unique id for the active pointer/touch.</param>
public PanelPointerEvent(Vector2 position, int pointerId)
{
Position = position;
PointerId = pointerId;
}
}
}