コンテンツにスキップ

OverlayInput クラス

Configures and queries overlay input behavior.

名前空間: FloatSoda.OVR.Overlay
アセンブリ: FloatSoda.OVR.dll

public sealed class OverlayInput

object ← OverlayInput

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Configures and queries overlay input behavior.

public OverlayInput(ulong overlayHandle)

overlayHandle ulong

The overlay handle to control.

Gets whether the overlay is currently the hover target.

public bool IsHovered { get; }

bool

Gets or sets how the overlay receives input.

public VROverlayInputMethod Method { get; set; }

VROverlayInputMethod

Sets the coordinate range of mouse events delivered to the overlay (typically the texture size in pixels).

public void SetMouseScale(float width, float height)

width float

The maximum x coordinate.

height float

The maximum y coordinate.