コンテンツにスキップ

OverlayIdentity クラス

Creates or adopts the identity of a regular OpenVR overlay.

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

public class OverlayIdentity : IOverlayIdentity, IDisposable

object ← OverlayIdentity

IOverlayIdentity, IDisposable

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

Creates a new overlay identity or adopts an existing handle.

public OverlayIdentity(string key, string name, ulong overlayHandle = 0)

key string

The stable key used to identify the overlay in SteamVR.

name string

The user-facing overlay name.

overlayHandle ulong

An existing handle to adopt, or the invalid handle to create a new overlay.

Gets the native OpenVR overlay handle.

public ulong Handle { get; }

ulong

Gets the stable key used to identify the overlay in SteamVR.

public string Key { get; protected init; }

string

Gets the user-facing overlay name.

public string Name { get; protected init; }

string

Destroys the owned OpenVR overlay if it has not already been destroyed.

public virtual void Dispose()