{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class Utils | Oculus XR Plugin | 4.1.2
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Utils

    Inheritance
    object
    Utils
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.XR.Oculus
    Assembly: solution.dll
    Syntax
    public static class Utils

    Properties

    Name Description
    eyeTrackedFoveatedRenderingEnabled

    Gets or sets whether eye tracked foveated rendering is enabled or not.

    eyeTrackedFoveatedRenderingSupported

    Returns whether or not eye tracked foveated rendering (ETFR) is supported. You cannot enable ETFR using eyeTrackedFoveatedRenderingEnabled if the feature isn't supported.

    foveatedRenderingLevel

    Gets or sets the foveated rendering level. This works for both FFR and ETFR level can be 0, 1, 2, 3, or 4:

    • -1 (get) not supported on current platform
    • 0 foveated rendering disabled
    • 1 low foveated rendering level
    • 2 medium foveated rendering level
    • 3 high foveated rendering level
    • 4 high top foveated rendering level
    useDynamicFoveatedRendering

    Gets or sets dynamic foveated rendering which will change the foveated rendering level automatically based on the current performance. Works for both FFR and ETFR.

    Methods

    Name Description
    EnableDynamicFFR(bool)

    Enable or disable dynamic foveated rendering. Only supported on mobile. See Oculus Documention.

    GetFoveationLevel()

    Returns the level of foveated rendering. Only supported on mobile. See Oculus Documentation.

    GetSystemHeadsetType()

    Returns the type of the current headset

    IsEyeTrackingPermissionGranted()

    Returns true if the user has allowed the Eye Tracking permission.

    SetColorScaleAndOffset(Vector4, Vector4)

    Set the color scale and color offset of the eye texture layers

    SetFoveationLevel(int)

    Set the degree of foveation. Only supported on mobile. See Oculus Documention.

    In This Article
    Back to top
    Copyright © 2023 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)