Before starting the game I have two scenes in the editor :
Game and Main Menu
On the object GameObject at the bottom I have a script Scaling.
If I will drag the Cube to the field Object To Scale and will run the game it will work fine. I can press on the G key and it will scale up/down the cube fine.
Bit if I will drag the NAVI under Player to the Scaling script field Object To Scale then when running the game NAVI is destroyed since now Player (Clone) is on another scene.
The cube is on the same scene when running the game.
Now a screenshot after running the game : The Cube and the GameObject with the Scaling script are still in the Game scene. But the Player is now in the DontDestroyOnLoad scene :
And then NAVI is missing from the Scaling script :
Player is prefab maybe I should drag to the script the Player prefab and then in the script to find NAVI child ? Instead dragging the NAVI.
GameObject.Find("<name>")
could help you – Lukas