Method TryQueueTransformation
TryQueueTransformation(IXRBodyTransformation)
Attempts to queue a transformation to be applied during the active XRBodyTransformer's next Update(). The provider's transformationPriority determines when the transformation is applied in relation to others. The queue attempt only succeeds if the provider is in the Moving state.
Declaration
protected bool TryQueueTransformation(IXRBodyTransformation bodyTransformation)
Parameters
| Type | Name | Description |
|---|---|---|
| IXRBodyTransformation | bodyTransformation | The transformation that will receive a call to Apply(XRMovableBody) in the next Update(). |
Returns
| Type | Description |
|---|---|
| bool | Returns true if the provider has access to the XRBodyTransformer, false otherwise. |
Remarks
This should only be called when locomotionState is Moving, otherwise this method will do nothing and return false.
See Also
TryQueueTransformation(IXRBodyTransformation, int)
Attempts to queue a transformation to be applied during the active XRBodyTransformer's next
Update(). The given priority determines when the
transformation is applied in relation to others. The queue attempt only succeeds if the provider is in the
Moving state.
Declaration
protected bool TryQueueTransformation(IXRBodyTransformation bodyTransformation, int priority)
Parameters
| Type | Name | Description |
|---|---|---|
| IXRBodyTransformation | bodyTransformation | The transformation that will receive a call to Apply(XRMovableBody) in the next Update(). |
| int | priority | Value that determines when to apply the transformation. Transformations with lower priority values are applied before those with higher priority values. |
Returns
| Type | Description |
|---|---|
| bool | Returns true if the provider has access to the XRBodyTransformer, false otherwise. |
Remarks
This should only be called when locomotionState is Moving, otherwise this method will do nothing and return false.