docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRCameraFrame

    Parameters of the Unity Camera that might be necessary or useful to the provider.

    Implements
    IEquatable<XRCameraFrame>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: solution.dll
    Syntax
    public struct XRCameraFrame : IEquatable<XRCameraFrame>

    Properties

    Name Description
    ambientSphericalHarmonics

    The ambient spherical harmonic coefficients that represent lighting in the real-world.

    averageBrightness

    The estimated brightness of the scene.

    averageColorTemperature

    The estimated color temperature of the scene.

    averageIntensityInLumens

    The estimated intensity, in lumens, of the scene.

    cameraGrain

    A texture that simulates the camera's noise.

    colorCorrection

    The estimated color correction value of the scene.

    displayMatrix

    The 4x4 display matrix for the camera frame.

    exposureDuration

    The camera exposure duration, in seconds with sub-millisecond precision, of the scene.

    exposureOffset

    The camera exposure offset of the scene for lighting scaling.

    hasAmbientSphericalHarmonics

    True if the frame has the ambient spherical harmonics coefficients of the scene.

    hasAverageBrightness

    True if the frame has an average brightness.

    hasAverageColorTemperature

    True if the frame has an average color temperature.

    hasAverageIntensityInLumens

    True if the frame has an average intensity in lumens.

    hasCameraGrain

    True if the frame has a camera grain texture.

    hasColorCorrection

    True if the frame has a color correction value.

    hasDisplayMatrix

    True if the frame has a display matrix.

    hasExposureDuration

    True if the frame has an exposure duration in seconds with sub-millisecond precision.

    hasExposureOffset

    True if the frame has an exposure offset for scaling lighting.

    hasMainLightColor

    True if the frame has the estimated main light color of the scene.

    hasMainLightDirection

    True if the frame has the estimated main light direction of the scene.

    hasMainLightIntensityLumens

    True if the frame has the estimated main light channel-wise intensity of the scene.

    hasNoiseIntensity

    True if the frame has a camera grain noise.

    hasProjectionMatrix

    True if the frame has a projection matrix.

    hasTimestamp

    True if the frame has a timestamp.

    mainLightColor

    The estimated color of the most influential real-world light in the scene.

    mainLightDirection

    The estimated direction of the most influential real-world light in the scene.

    mainLightIntensityLumens

    The estimated intensity in lumens of the most influential real-world light in the scene.

    nativePtr

    A native pointer associated with this frame. The data pointed to by this pointer is specific to provider implementation.

    noiseIntensity

    The level of intensity of camera grain noise in a scene.

    projectionMatrix

    The 4x4 projection matrix for the camera frame.

    properties

    The set of all flags indicating which properties are included in the frame.

    timestampNs

    The timestamp, in nanoseconds, associated with this frame.

    trackingState

    The TrackingState associated with the camera.

    Methods

    Name Description
    Equals(object)

    Compares for equality.

    Equals(XRCameraFrame)

    Compares for equality.

    GetHashCode()

    Generates a hash code suitable for use in HashSet and Dictionary.

    ToString()

    Generates a string representation of this XRCameraFrame suitable for debugging purposes.

    TryGetAverageBrightness(out float)

    Provides the brightness for the whole image as an average of all pixels' brightness.

    TryGetAverageColorTemperature(out float)

    Provides the color temperature for the whole image as an average of all pixels' color temperature.

    TryGetAverageIntensityInLumens(out float)

    Provides the intensity, in lumens, for the environment.

    TryGetDisplayMatrix(out Matrix4x4)

    Provides the display matrix defining how texture is being rendered on the screen.

    TryGetProjectionMatrix(out Matrix4x4)

    Provides the projection matrix for the camera frame.

    TryGetTimestamp(out long)

    Provides a timestamp of the camera frame.

    Operators

    Name Description
    operator ==(XRCameraFrame, XRCameraFrame)

    Compares lhs and rhs for equality using Equals(XRCameraFrame).

    operator !=(XRCameraFrame, XRCameraFrame)

    Compares lhs and rhs for inequality using Equals(XRCameraFrame).

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