1.timeline中Clip的三种模式
(1)默认是mix,混合模式
(2)Ripple模式
(3)Replace模式:
二修改timeline中模型的初始播放位置相关:
三 模型的“T”字形姿势的检查:
动画片段的检查
四Animation Override和Avatar Mask
创建override后,添加Draw动画,
然后创建 一个Avatar
循环播放
五Track的设置和匹配位置
六 Clip设置相关:
七Audio声音Track
八Control Track
九 ITimeControl,新建脚本
常用做 字幕随着时间而不断的显示
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Timeline;
using UnityEngine.UI;
public class LearnTimeControl : MonoBehaviour,ITimeControl
{
public Text text;
string caption = "你好,欢迎使用ITimeControl功能";
public void OnControlTimeStart()
{
text.gameObject.SetActive(true);
}
public void OnControlTimeStop()
{
text.gameObject.SetActive(false);
}
public void SetTime(double time)
{
if (time <= caption.Length)
{
text.text = caption.Substring(0, (int)time);
}
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
将挂载脚本的物体放入ControTrack轨道中,就可以看到效果
十Signal Track(2019.1以后才有此功能)