OVRApplication クラス
Owns an initialized OpenVR application context.
名前空間: FloatSoda.OVR
アセンブリ: FloatSoda.OVR.dll
public class OVRApplication : IDisposable実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Dispose the instance after all OpenVR objects have stopped using the process-wide context.
コンストラクター
Section titled “コンストラクター”OVRApplication(OVRAppInfo)
Section titled “OVRApplication(OVRAppInfo)”Instantiate and initialize a new OVRApplication.
Internally, this initializes the process-wide OpenVR API using appInfo.
public OVRApplication(OVRAppInfo appInfo)パラメーター
Section titled “パラメーター”appInfo OVRAppInfo
The application identity and type used to initialize OpenVR.
OpenVR initialization fails.
AutoLaunch
Section titled “AutoLaunch”Gets or sets whether SteamVR launches this application automatically.
public bool AutoLaunch { get; set; }プロパティの値
Section titled “プロパティの値”Gets the application information used for initialization.
public OVRAppInfo Info { get; init; }プロパティの値
Section titled “プロパティの値”Installed
Section titled “Installed”Gets whether the application key is currently registered with SteamVR.
public bool Installed { get; }プロパティの値
Section titled “プロパティの値”OVRSystem
Section titled “OVRSystem”Gets the initialized OpenVR system interface.
public CVRSystem OVRSystem { get; init; }プロパティの値
Section titled “プロパティの値”CVRSystem
Dispose()
Section titled “Dispose()”Shuts down the process-wide OpenVR context.
public void Dispose()~OVRApplication()
Section titled “~OVRApplication()”Releases the OpenVR context if the application was not disposed explicitly.
protected ~OVRApplication()Identify()
Section titled “Identify()”Registers this process with SteamVR under Info’s application key.
public void Identify()Init only bootstraps the OpenVR API; it does not associate the
calling process with a manifest’s app_key. Call this once during startup — SteamVR
needs the process/AppKey association for AutoLaunch and scene-transition
behavior to work correctly. Requires Info’s key to already be registered
with SteamVR (see AddManifest and Installed);
otherwise this throws VRApplicationException with
UnknownApplication.
The application key is not registered with SteamVR, or another OpenVR application error occurred.