浏览代码

implement dolly reset

/cinematic-demo-ME
etienne cella 5 年前
当前提交
ca00428c
共有 1 个文件被更改,包括 12 次插入2 次删除
  1. 14
      Assets/ClusterDisplay/Scripts/DirectorController.cs

14
Assets/ClusterDisplay/Scripts/DirectorController.cs


void OnEnable()
{
m_Director = GetComponent<PlayableDirector>();
m_Director.RebuildGraph();
m_Director.RebuildGraph();
if (Input.GetKeyDown(KeyCode.R))
{
m_Director.time = 0;
m_Director.Play();
return;
}
else return;
if(!m_Director.playableGraph.IsValid())
m_Director.RebuildGraph();
m_Director.playableGraph.GetRootPlayable(0).SetSpeed(m_Speed);
}
}
正在加载...
取消
保存