@@ -356,7 +356,11 @@ UTexture2D* ULuaBlueprintFunctionLibrary::LuaValueToTransientTexture(int32 Width
356
356
UE_LOG (LogLuaMachine, Error, TEXT (" Unable to parse image data" ));
357
357
return nullptr ;
358
358
}
359
+ #if ENGINE_MINOR_VERSION >= 25
360
+ TArray<uint8> UncompressedBytes;
361
+ #else
359
362
const TArray<uint8>* UncompressedBytes = nullptr ;
363
+ #endif
360
364
if (!ImageWrapper->GetRaw (ERGBFormat::BGRA, 8 , UncompressedBytes))
361
365
{
362
366
UE_LOG (LogLuaMachine, Error, TEXT (" Unable to get raw image data" ));
@@ -365,7 +369,11 @@ UTexture2D* ULuaBlueprintFunctionLibrary::LuaValueToTransientTexture(int32 Width
365
369
PixelFormat = EPixelFormat::PF_B8G8R8A8;
366
370
Width = ImageWrapper->GetWidth ();
367
371
Height = ImageWrapper->GetHeight ();
372
+ #if ENGINE_MINOR_VERSION >= 25
373
+ Bytes = UncompressedBytes;
374
+ #else
368
375
Bytes = *UncompressedBytes;
376
+ #endif
369
377
}
370
378
371
379
UTexture2D* Texture = UTexture2D::CreateTransient (Width, Height, PixelFormat);
@@ -599,8 +607,11 @@ void ULuaBlueprintFunctionLibrary::LuaTableFillObject(FLuaValue InTable, UObject
599
607
{
600
608
FLuaValue Key = L->ToLuaValue (-2 );
601
609
FLuaValue Value = L->ToLuaValue (-1 );
602
-
610
+ #if ENGINE_MINOR_VERSION >= 25
611
+ FProperty* Property = Class->FindPropertyByName (*Key.ToString ());
612
+ #else
603
613
UProperty* Property = Class->FindPropertyByName (*Key.ToString ());
614
+ #endif
604
615
if (Property)
605
616
{
606
617
bool bSuccess = false ;
0 commit comments