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)
Comments (1)
-
kghate8121
Dec 02, 2023 04:21
Thanks
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
- Memory leak occurs when focused on Player while using Direct3D12
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
Resolution Note:
The Unity Ads package requires domain reloading to be enabled in Play Mode Options.