Skip to content

Commit

Permalink
added support for complex collisions on mobile (requires UE >= 5.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeioris committed Apr 27, 2024
1 parent 3568f41 commit f1c2792
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/glTFRuntime/Private/glTFRuntimeParserStaticMeshes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ FglTFRuntimeStaticMeshContext::FglTFRuntimeStaticMeshContext(TSharedRef<FglTFRun
{
StaticMesh = NewObject<UStaticMesh>(StaticMeshConfig.Outer ? StaticMeshConfig.Outer : GetTransientPackage(), NAME_None, RF_Public);
#if PLATFORM_ANDROID || PLATFORM_IOS
#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 4
StaticMesh->bAllowCPUAccess = StaticMeshConfig.bAllowCPUAccess;
#else
StaticMesh->bAllowCPUAccess = false;
#endif
#else
StaticMesh->bAllowCPUAccess = StaticMeshConfig.bAllowCPUAccess;
#endif
Expand Down

0 comments on commit f1c2792

Please sign in to comment.