Skip to content

Commit 15f5180

Browse files
authored
fix: refresh StreamingImageSequenceRenderer during OnEnable() (#457)
1 parent b9b1068 commit 15f5180

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Runtime/Scripts/StreamingImageSequenceRenderer.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
using UnityEngine.Assertions;
44
using UnityEngine.UI;
55

6+
#if UNITY_EDITOR
7+
using UnityEditor.Timeline;
8+
#endif
9+
610
namespace Unity.StreamingImageSequence {
711

812
/// <summary>
@@ -42,6 +46,10 @@ public sealed class StreamingImageSequenceRenderer : MonoBehaviour {
4246

4347
void OnEnable() {
4448
InitImageComponent();
49+
50+
#if UNITY_EDITOR
51+
TimelineEditor.Refresh(RefreshReason.SceneNeedsUpdate);
52+
#endif
4553
}
4654

4755
internal void Init() {

0 commit comments

Comments
 (0)