Class CommitContext
The CommitContext tracks mappings of virtual objects to real unity objects, and avoids infinite recursion during
animator graph serialization. Normally, you should not need to interact with this class directly; it is used
internally by VirtualControllerContext
when converting virtualized animators to real animators.
This is primarily exposed for testing purposes.
public sealed class CommitContext
- Inheritance
-
CommitContext
- Inherited Members
Constructors
CommitContext(IPlatformAnimatorBindings)
public CommitContext(IPlatformAnimatorBindings platform)
Parameters
platform
IPlatformAnimatorBindings
Properties
ActiveInnateLayerKey
public object? ActiveInnateLayerKey { get; }
Property Value
Methods
DestroyAllImmediate()
Destroys all objects committed in this context. Primarily intended for test cleanup.
public void DestroyAllImmediate()
VirtualToPhysicalLayerIndex(int)
Converts a virtual layer index to a real layer index. Virtual layer indexes are assigned by @"CloneContext"
in order to allow layers from multiple original controllers to be merged while still maintaining
correct cross-referencing for VRCAnimatorLayerControl
state behaviors.
public int VirtualToPhysicalLayerIndex(int index)
Parameters
index
int