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 |
Returns
| Type | Description |
|---|---|
| bool |
|
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 |
|