Interface ITakeBuilder
Represents a Take asset creator.
Namespace: Unity.LiveCapture
Syntax
public interface ITakeBuilder
Methods
CreateAnimationTrack(String, Animator, AnimationClip, ITrackMetadata, Nullable<Double>)
Creates an animation track.
Declaration
void CreateAnimationTrack(string name, Animator animator, AnimationClip animationClip, ITrackMetadata metadata = null, double? startTime = null)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the track. |
Animator | animator | The target animator component to bind. |
AnimationClip | animationClip | The animation clip to set into the new track. |
ITrackMetadata | metadata | The metadata associated with the new track (optional). |
Nullable<Double> | startTime | The time (expressed in seconds) of first sample of animation clip (optional). |
Remarks
This method checks if another animation track is using the same binding.
In that case, the new track becomes an override of the existing one.
You can optionally pass in a startTime
, which will be used for alignment by
startTime
is null
, the clip will by
aligned to the start of the track.