Method CreateRecordableClip
CreateRecordableClip(string)
Creates a TimelineClip, AnimationPlayableAsset and an AnimationClip. Use this clip to record in a timeline.
Declaration
public TimelineClip CreateRecordableClip(string animClipName)
Parameters
Type | Name | Description |
---|---|---|
string | animClipName | The name of the AnimationClip to create. This method does not ensure unique names. If you want a unique clip name, you must provide one. See ObjectNames.GetUniqueName for information on a method that creates unique names. |
Returns
Type | Description |
---|---|
TimelineClip | Returns a new TimelineClip with an AnimationPlayableAsset asset attached. |
Remarks
When used from the editor, this method attempts to save the created recordable clip to the TimelineAsset. The TimelineAsset must already exist in the AssetDatabase to save the recordable clip. If the TimelineAsset does not exist, the recordable clip is still created but it is not saved.