So I have more of a general Unity programming question…
If I have a script that runs in two different scenes, which has a GameObject variable (assigned via the inspector) which only exists in one of those scenes, how do I get past/avoid UnassignedReferenceException errors due to not being able to assign that GameObject in the scene where it doesn’t exist?
I’m stumped and it’s causing me some headache. Any advice is appreciated!