Skip to content

Commit 8d0f326

Browse files
authored
internal: allow setting useLastImageOnLoad on StreamingImageSequenceRenderer (#451)
1 parent 9f093d6 commit 8d0f326

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Runtime/Scripts/StreamingImageSequenceRenderer.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,14 @@ internal void UpdateTexture(Texture2D tex) {
118118

119119
}
120120

121-
//----------------------------------------------------------------------------------------------------------------------
122-
123-
internal bool ShouldUseLastImageOnLoad() { return m_useLastImageOnLoad; }
121+
//--------------------------------------------------------------------------------------------------------------------------------------------------------------
122+
123+
internal void SetUseLastImageOnLoad(bool useLastImageOnLoad) {
124+
m_useLastImageOnLoad = useLastImageOnLoad;
125+
}
126+
internal bool ShouldUseLastImageOnLoad() => m_useLastImageOnLoad;
124127

125-
//----------------------------------------------------------------------------------------------------------------------
128+
//--------------------------------------------------------------------------------------------------------------------------------------------------------------
126129

127130
void InitImageComponent() {
128131
m_image = GetComponent<Image>();

0 commit comments

Comments
 (0)