赞
踩
**
**
编辑器模式:
Convert To Clip Track-修改Speed Multiplier的值
**
**
运行模式,代码修改:
修改全局速度:
playableDirector.playableGraph.GetRootPlayable(0).SetSpeed(2.5f);
**
**
运行模式,代码修改:
修改指定轨道速度:
IEnumerable<TrackAsset> tracks = timelineAsset.GetOutputTracks();
foreach (var track in tracks)
{
Debug.Log(track.name);
IEnumerable<TimelineClip> clips = track.GetClips();
foreach (var clip in clips)
{
Debug.Log(clip.displayName);
clip.timeScale = 2.5f;
}
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。