docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IXRHandConfigurationHandler<TConfig>

    Interface for managing typed configuration state. Implementations are registered with RegisterConfigurationHandler<TConfig>(IXRHandConfigurationHandler<TConfig>) and queried via TryGetConfiguration<TConfig>(out TConfig) and TryUpdateConfiguration<TConfig>(TConfig).

    Namespace: UnityEngine.XR.Hands
    Assembly: Unity.XR.Hands.dll
    Syntax
    public interface IXRHandConfigurationHandler<TConfig> : IXRHandConfigurationHandler
    Type Parameters
    Name Description
    TConfig

    The configuration type this handler manages.

    Methods

    TryGetConfiguration(out TConfig)

    Attempts to retrieve the current configuration.

    Declaration
    bool TryGetConfiguration(out TConfig config)
    Parameters
    Type Name Description
    TConfig config

    When this method returns true, contains the current configuration.

    Returns
    Type Description
    bool

    true if the configuration is provided; otherwise false.

    TryUpdateConfiguration(TConfig)

    Stages an updated configuration. Depending on the implementation, changes may take effect immediately or at a later point (e.g., on the next hand tracker creation).

    Declaration
    bool TryUpdateConfiguration(TConfig config)
    Parameters
    Type Name Description
    TConfig config

    The new configuration to stage.

    Returns
    Type Description
    bool

    true if the configuration was accepted; otherwise false.

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