docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class VisionOSRuntimeSettings

    Build time settings for visionOS. These are serialized and available at runtime.

    Inheritance
    object
    Object
    ScriptableObject
    VisionOSRuntimeSettings
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.InstantiateAsync<T>(T)
    Object.InstantiateAsync<T>(T, Transform)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int)
    Object.InstantiateAsync<T>(T, int, Transform)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, CancellationToken)
    Object.InstantiateAsync<T>(T, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, InstantiateParameters, CancellationToken)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Scene)
    Object.Instantiate<T>(T, InstantiateParameters)
    Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.VisionOS
    Assembly: Unity.XR.VisionOS.dll
    Syntax
    public class VisionOSRuntimeSettings : ScriptableObject

    Properties

    initialMinimumFrameRepeatCount

    The minimum number of frames to repeat a rendered frame. Increasing this value from its default of 0 will increase the amount of time you have to render each frame. For example, a value of 1 will repeat each frame one time, resulting in double the amount of time per frame. For a maximum frame rate of 90hz, repeating each frame once will reduce Unity's target frame rate to 45hz. A value of 2 will give you three times the normal amount of time per frame, with a target of 33 hz, and so on. This setting will be used at start-up to decide the target frame rate and initial value provided to the system. You can change this at runtime by setting Application.targetFrameRate and calling VisionOS.SetMinimumFrameRepeatCount. This will be presented as Target Frame Rate in the settings UI.

    Declaration
    public int initialMinimumFrameRepeatCount { get; set; }
    Property Value
    Type Description
    int

    initializeHandTrackingOnStartup

    Controls if hand tracking should be initialized when the application begins. An XR Hands provider or package (ex: com.unity.xr.hands) is required for hand tracking.

    Declaration
    public bool initializeHandTrackingOnStartup { get; set; }
    Property Value
    Type Description
    bool

    setTargetFrameRateOnStartup

    Controls if the target frame rate and frame repeat count should be set when the application begins.

    Declaration
    public bool setTargetFrameRateOnStartup { get; set; }
    Property Value
    Type Description
    bool

    Methods

    GetTargetFrameRateForRepeatCount(int)

    For a given value of repeat count, return the value that should be set on targetFrameRate. This assumes a maximum frame rate of 90hz.

    Declaration
    public static int GetTargetFrameRateForRepeatCount(int repeatCount)
    Parameters
    Type Name Description
    int repeatCount

    The repeat count which will be given to SetMinimumFrameRepeatCount(IntPtr, int)

    Returns
    Type Description
    int

    The target frame rate that should be set on targetFrameRate

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)