File tree 3 files changed +12
-1
lines changed 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
10
10
- Support for the PlayStation 5 platform has been added.
11
11
- Support for the XboxSeries platform has been added.
12
12
13
+ ### Fixed
14
+ - Fix for issue thrown upon unloading a scene from an AssetBundle (case 1262826)
15
+
13
16
## [ 3.0.3] - 2021-02-19
14
17
15
18
- bump version to 3.0.3 to not conflict with unrelease 3.0.2
Original file line number Diff line number Diff line change @@ -856,7 +856,10 @@ void SetupContext(PostProcessRenderContext context)
856
856
{
857
857
// Juggling required when a scene with post processing is loaded from an asset bundle
858
858
// See #1148230
859
- if ( m_OldResources != m_Resources )
859
+ // Additional !RuntimeUtilities.isValidResources() to fix #1262826
860
+ // The static member s_Resources is unset by addressable. The code is ill formed as it
861
+ // is not made to handle multiple scene.
862
+ if ( m_OldResources != m_Resources || ! RuntimeUtilities . isValidResources ( ) )
860
863
{
861
864
RuntimeUtilities . UpdateResources ( m_Resources ) ;
862
865
m_OldResources = m_Resources ;
Original file line number Diff line number Diff line change @@ -381,6 +381,11 @@ public static PropertySheet copyFromTexArraySheet
381
381
}
382
382
}
383
383
384
+ internal static bool isValidResources ( )
385
+ {
386
+ return s_Resources != null ;
387
+ }
388
+
384
389
internal static void UpdateResources ( PostProcessResources resources )
385
390
{
386
391
Destroy ( s_CopyMaterial ) ;
You can’t perform that action at this time.
0 commit comments