Create
Given source and destination rig definitions, this function creates a remap table based on matching bindings.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
Create(RigDefinition, RigDefinition, ChannelFilter, OffsetOverrides, Func<StringHash, StringHash, bool>)
public static BlobObjectReference<RigRemapTable> Create(ref RigDefinition srcRig, ref RigDefinition dstRig, RigRemapTable.ChannelFilter filter = ChannelFilter.All, RigRemapTable.OffsetOverrides offsetOverrides = default, Func<StringHash, StringHash, bool> matchBindingsFunc = null)
Parameters
The source rig definition to remap from, for example the of a BlobObjectReference<T>.
ValueThe destination rig definition to remap to.
Optional parameter to filter matches based on channel type. By default, all types of channels are used for matching.
Optional parameter to specify which translation or rotation channels should be matched with offsets in a given space (LocalToParent vs. LocalToCharacter). By default, LocalToParent mapping is performed.
The functor used to match bindings from the source rig definition to the destination rig definition.
Returns
Type | Description |
|---|---|
| BlobObjectReference<RigRemapTable> | The reference to the new RigRemapTable. You must dispose it. |