docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSpatialCapabilityConfigurationBaseHeaderEXT

    Base header for capability configuration structs. Provided by XR_EXT_spatial_entity.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.OpenXR.NativeTypes
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public readonly struct XrSpatialCapabilityConfigurationBaseHeaderEXT
    Remarks
    Warning

    Don't initialize this struct with the default parameterless constructor. Use a constructor with parameters to ensure that type is correctly initialized.

    Constructors

    XrSpatialCapabilityConfigurationBaseHeaderEXT(XrStructureType, void*, XrSpatialCapabilityEXT, uint, XrSpatialComponentTypeEXT*)

    Construct an instance.

    Declaration
    public XrSpatialCapabilityConfigurationBaseHeaderEXT(XrStructureType type, void* next, XrSpatialCapabilityEXT capability, uint enabledComponentCount, XrSpatialComponentTypeEXT* enabledComponents)
    Parameters
    Type Name Description
    XrStructureType type

    The structure type.

    void* next

    The next pointer.

    XrSpatialCapabilityEXT capability

    The capability.

    uint enabledComponentCount

    The enabled component count.

    XrSpatialComponentTypeEXT* enabledComponents

    Pointer to the enabled components array.

    XrSpatialCapabilityConfigurationBaseHeaderEXT(XrStructureType, void*, XrSpatialCapabilityEXT, NativeArray<XrSpatialComponentTypeEXT>)

    Construct an instance from a native array.

    Declaration
    public XrSpatialCapabilityConfigurationBaseHeaderEXT(XrStructureType type, void* next, XrSpatialCapabilityEXT capability, NativeArray<XrSpatialComponentTypeEXT> enabledComponents)
    Parameters
    Type Name Description
    XrStructureType type

    The structure type.

    void* next

    The next pointer.

    XrSpatialCapabilityEXT capability

    The capability.

    NativeArray<XrSpatialComponentTypeEXT> enabledComponents

    Native array of enabled components.

    XrSpatialCapabilityConfigurationBaseHeaderEXT(XrStructureType, XrSpatialCapabilityEXT, uint, XrSpatialComponentTypeEXT*)

    Construct an instance with a null next pointer.

    Declaration
    public XrSpatialCapabilityConfigurationBaseHeaderEXT(XrStructureType type, XrSpatialCapabilityEXT capability, uint enabledComponentCount, XrSpatialComponentTypeEXT* enabledComponents)
    Parameters
    Type Name Description
    XrStructureType type

    The structure type.

    XrSpatialCapabilityEXT capability

    The capability.

    uint enabledComponentCount

    The enabled component count.

    XrSpatialComponentTypeEXT* enabledComponents

    Pointer to the enabled components array.

    XrSpatialCapabilityConfigurationBaseHeaderEXT(XrStructureType, XrSpatialCapabilityEXT, NativeArray<XrSpatialComponentTypeEXT>)

    Construct an instance with a null next pointer from a native array.

    Declaration
    public XrSpatialCapabilityConfigurationBaseHeaderEXT(XrStructureType type, XrSpatialCapabilityEXT capability, NativeArray<XrSpatialComponentTypeEXT> enabledComponents)
    Parameters
    Type Name Description
    XrStructureType type

    The structure type.

    XrSpatialCapabilityEXT capability

    The capability.

    NativeArray<XrSpatialComponentTypeEXT> enabledComponents

    Native array of enabled components.

    Properties

    capability

    The capability to configure.

    Declaration
    public XrSpatialCapabilityEXT capability { get; }
    Property Value
    Type Description
    XrSpatialCapabilityEXT

    enabledComponentCount

    The count of elements in enabledComponents. Must be greater than 0.

    Declaration
    public uint enabledComponentCount { get; }
    Property Value
    Type Description
    uint

    enabledComponents

    Pointer to an array of component types to enable for this capability. Must be non-null.

    Declaration
    public XrSpatialComponentTypeEXT* enabledComponents { get; }
    Property Value
    Type Description
    XrSpatialComponentTypeEXT*

    next

    null or a pointer to the next structure in a structure chain.

    Declaration
    public void* next { get; }
    Property Value
    Type Description
    void*

    type

    The XrStructureType of this struct.

    Declaration
    public XrStructureType type { get; }
    Property Value
    Type Description
    XrStructureType
    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)