//---------------------------------------------------------------------------------------------------------------------- public void Execute() { //Only continue preloading images when we are not in play mode if (Application.isPlaying) { return; } Assert.IsNotNull(m_mixer); var clipAssets = m_mixer.GetClipAssets(); bool needsRefresh = false; foreach (KeyValuePair <TimelineClip, StreamingImageSequencePlayableAsset> kv in clipAssets) { StreamingImageSequencePlayableAsset sisAsset = kv.Value; sisAsset.ContinuePreloadingImages(); if (sisAsset.UpdateTextureWithRequestedImage()) { needsRefresh = true; } } if (needsRefresh) { TimelineEditor.Refresh(RefreshReason.ContentsModified); } }