Skybox hot reloading - fix black screen when running the editor for the first time with a clean cache (#5529)
* Add a default fallback image when a StreamingImageAsset fails to load Signed-off-by: Tommy Walton <waltont@amazon.com> * Don't release a missing/invalid texture reference in the skybox component. Hold on to the reference so that it can hot-reload Signed-off-by: Tommy Walton <waltont@amazon.com> * Don't release a missing/invalid texture reference in the ibl component. Hold on to the reference so that it can hot-reload Signed-off-by: Tommy Walton <waltont@amazon.com> * Use a different fallback image depending on the status of the asset. Including a setting to use a friendly image that is less obnoxious for anything that might have been missed in a release build Signed-off-by: Tommy Walton <waltont@amazon.com> * Adding the stubbed in fallback textures Signed-off-by: Tommy Walton <waltont@amazon.com> * Updated the seedlist for the RPI to include the fallback images. It only needs the default and the missing asset images, since the AP doesn't run in release builds, the asset status will always be unknown, not processing or failed to process, so if an asset is not bundled, it is just missing. Signed-off-by: Tommy Walton <waltont@amazon.com> * Switched to GetAssetIdByPath and removed some tabs Signed-off-by: Tommy Walton <waltont@amazon.com>
This commit is contained in:
-2
@@ -163,8 +163,6 @@ namespace AZ
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// If this asset didn't load or isn't a cubemap, release it.
|
||||
configAsset.Release();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user