Question by
AlexConnolly · Apr 10, 2019 at 12:16 PM ·
c#scripting problemscene
Issues with additive scene and FindObjectOfType
I have a scene used for my game.
I have a scene used for my HUD that is loaded additively.
I have a scene used for my Shop UI within my game that is loaded additively.
From the HUD screen, I want to call the Shop UI to display. The shop UI has an object called ShopWindow. I use FindObjectOfType to find the object.
This works for the game scene, but when calling from the other additive scene to another additive scene, it seems to not be able to find it and the FindObjectOfType returns a null.
Is there a special setup I need to use, or is this considered bad practice and doesn't work?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612195207im_/https://answers.unity.com/themes/thub/images/avi.jpg)