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
I used the ocean project in a level and wanted to switch to another scene which doesn't have the ocean in it so I put both scenes in a level and switched the level visibility.
However when I switch from the level who has the ocean to the level who doesn't have the ocean it crashes because the world is not valid.
Here is the fix I made:
InifiniteSystemComponent.cpp
Added in line 109:
//Prevents crash if world not existing (in streaming level transition)
if (World == nullptr) return;
OceanManager.cpp
Added in line 40: if (World == nullptr) return 0.1f;
WeatherDataPlugin.cpp
Added in line 29:
// Check if World is valid first
if (!World) return;
The text was updated successfully, but these errors were encountered:
I used the ocean project in a level and wanted to switch to another scene which doesn't have the ocean in it so I put both scenes in a level and switched the level visibility.
However when I switch from the level who has the ocean to the level who doesn't have the ocean it crashes because the world is not valid.
Here is the fix I made:
InifiniteSystemComponent.cpp
Added in line 109:
OceanManager.cpp
Added in line 40:
if (World == nullptr) return 0.1f;
WeatherDataPlugin.cpp
Added in line 29:
The text was updated successfully, but these errors were encountered: