public SequenceState(WindowState windowState, TimelineAsset asset, PlayableDirector director, TimelineClip hostClip, SequenceState parentSequence) { m_WindowState = windowState; m_ParentSequence = parentSequence; this.asset = asset; this.director = director; this.hostClip = hostClip; start = hostClip == null ? 0.0 : hostClip.start; timeScale = hostClip == null ? 1.0 : hostClip.timeScale * parentSequence.timeScale; }
public SequenceState(WindowState windowState, TimelineAsset asset, PlayableDirector director, TimelineClip hostClip, SequenceState parentSequence) { m_WindowState = windowState; m_ParentSequence = parentSequence; this.asset = asset; this.director = director; this.hostClip = hostClip; isAssetOnly = asset != null && director == null; start = hostClip == null ? 0.0 : hostClip.start; timeScale = hostClip == null ? 1.0 : hostClip.timeScale * parentSequence.timeScale; if (asset != null) { asset.AssetModifiedOnDisk += AssetOnAssetModifiedOnDisk; } }