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
- Crash when total memory consumption is over 2GB
- Red dots are rendered when copying texture with ASTC format and CompressGpu
- [Linux] "Trying to load color backbuffer into a complex RenderPass setup" error is thrown after entering Play mode in AR Mobile template project
- [Android] Neither of the callbacks are called when several videos with VideoPlayer are spawned on the target on the Google Pixel devices
- Texture2D memory allocation size is significantly increased when running on iOS device
Resolution Note:
The Unity Ads package requires domain reloading to be enabled in Play Mode Options.