Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
4.0.0
Issue ID
1389654
Regression
No
An error is thrown when showing rewarded ad for the second time
Reproduction steps:
1. Open attached project "adsProject"
2. Change the targeted platform to Android in the Build Settings
3. Open Assets > Scene
4. Enter Play Mode, click the "Load" button, and then the "Show" button
5. Close the ad and exit Play Mode
6. Enter Play Mode again, click the "Load" button, and then the "Show" button
Expected result: No errors are thrown and an ad is shown
Actual result: This error is thrown:
MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Advertisements.Placeholder.HideSkipButton (UnityEngine.GameObject canvasGameObject) (at Library/PackageCache/com.unity.ads@4.0.0/Runtime/Advertisement/Platform/Editor/Placeholder.cs:178)
UnityEngine.Advertisements.Placeholder.Show (System.String placementId, System.Boolean allowSkip) (at Library/PackageCache/com.unity.ads@4.0.0/Runtime/Advertisement/Platform/Editor/Placeholder.cs:79)
UnityEngine.Advertisements.Platform.Editor.EditorPlatform+<>c__DisplayClass14_0.<Show>b__0 () (at Library/PackageCache/com.unity.ads@4.0.0/Runtime/Advertisement/Platform/Editor/EditorPlatform.cs:152)
UnityEngine.Advertisements.Utilities.CoroutineExecutor.Update () (at Library/PackageCache/com.unity.ads@4.0.0/Runtime/Advertisement/Utilities/CoroutineExecutor.cs:17)
Reproducible with: 4.0.0 (2020.3.27f1, 2021.2.9f1, 2022.1.0b5, 2022.2.0a2)
Could not test with: 4.0.0 (2019.4.35f1 - Editor not responsive)
Notes:
- Not reproducible when "Enter Play Mode Options" is disabled (Editor Settings > Enter Play Mode Options)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inspector's custom tooltip is displayed incorrectly when the name is truncated in UI toolkit
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
Resolution Note:
The Unity Ads package requires domain reloading to be enabled in Play Mode Options.