You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -161,8 +163,16 @@ void URuntimeGifReader::CreateTextureOnGameThread(int32 Width, int32 Height, con
161
163
ReadResult.OutTexture->SRGB = true;
162
164
ReadResult.OutTexture->UpdateResource();
163
165
164
-
// Auto-start playback
165
-
ReadResult.OutTexture->PlayFromStart();
166
+
// Auto-start playback if enabled
167
+
if (Request.bAutoPlay)
168
+
{
169
+
ReadResult.OutTexture->PlayFromStart();
170
+
UE_LOG(RuntimeGifReader, Log, TEXT("CreateTextureOnGameThread: Auto-play enabled, started playback"));
171
+
}
172
+
else
173
+
{
174
+
UE_LOG(RuntimeGifReader, Log, TEXT("CreateTextureOnGameThread: Auto-play disabled. Call Play() or PlayFromStart() on the texture to start playback."));
0 commit comments