docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ARCameraFrameEventArgs

    A structure for camera-related information pertaining to a particular frame. This is used to communicate information in the frameReceived event.

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

    Properties

    Name Description
    cameraGrainTexture

    The camera grain texture effect.

    disabledMaterialKeywords

    The list of keywords to be disabled for the material.

    displayMatrix

    Gets or sets the display matrix for use in the shader used by the ARCameraBackground. Use displayMatrix.HasValue to determine if this data is available.

    enabledMaterialKeywords

    The list of keywords to be enabled for the material.

    exposureDuration

    The exposure duration in seconds with sub-millisecond precision. Used in calculating motion blur.

    exposureOffset

    The offset of camera exposure. Used to scale scene lighting in post-processed lighting stage.

    lightEstimation

    The ARLightEstimationData associated with this frame.

    noiseIntensity

    The camera grain noise intensity.

    projectionMatrix

    Gets or sets the projection matrix for the AR Camera. Use projectionMatrix.HasValue to determine if this data is available.

    propertyNameIds

    Ids of the property name associated with each texture. This is a parallel List to the textures list.

    textures

    The textures associated with this camera frame. These are generally external textures, which exist only on the GPU. To use them on the CPU, e.g., for computer vision processing, you will need to read them back from the GPU.

    timestampNs

    The time, in nanoseconds, associated with this frame. Use timestampNs.HasValue to determine if this data is available.

    Methods

    Name Description
    Equals(object)

    Tests for equality.

    Equals(ARCameraFrameEventArgs)

    Tests for equality.

    GetHashCode()

    Generates a hash suitable for use with containers like HashSet and Dictionary.

    ToString()

    Generates a string representation of this struct suitable for debug logging.

    Operators

    Name Description
    operator ==(ARCameraFrameEventArgs, ARCameraFrameEventArgs)

    Tests for equality. Same as Equals(ARCameraFrameEventArgs).

    operator !=(ARCameraFrameEventArgs, ARCameraFrameEventArgs)

    Tests for inequality. Same as !Equals(ARCameraFrameEventArgs).

    In This Article
    • Properties
    • Methods
    • Operators
    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)