Hello! My game is lit in real time, with a day-night cycle. How can I transport my sun from scene to scene? I have tried putting a ConstantID on it but it doesn't seem to work.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
mmm interesting. I'm going to try something like that. I have bought an asset to do it, in the asset store there are several, for 3d and for 2d.
Your game must have a lot of narrative depth, it sounds good
So can I move the same sun from scene to scene? Or do I create a sun in each scene, and every time I change the scene I pass the values ββto the sun?
sorry but my bad english
AC's ConstantID component does not affect an object's persistence in the scene - it merely allows it to be referenced by the save system and asset files.
DontDestroyOnLoad will make it persistent, but - as Rairun says - it's unrelated to AC.
A separate asset should be able to handle things independently from AC, but you may need to write a custom Remember script to have its state stored in save games. For details, see this tutorial.
thanks! i will investigate