Topic was automatically imported from the old Question2Answer platform.
Asked By
kupher
I have been playing around with paronama sky animating Day/Night cycle in C#, while using this line:
SkySphere.Environment.SetSkyRotationDegrees(new Vector3(0, timeOf, 0));
(timeOf is the calculated time of the day variable)
it works but I get this problem in VS Code:
[deprecated] void Godot.Environment.SetSkyRotationDegrees(Vector3 eulerDegrees)
‘Environment.SetSkyRotationDegrees(Vector3)’ is obsolete: ‘SetSkyRotationDegrees is deprecated. Use the BackgroundSkyRotationDegrees property instead.’ [SkySphere_Demo]
My questions is how do we use BackgroundSkyRotationDegrees property?
i think the explanation is pretty clear: the SetSkyRotationDegrees() method you are using is depecrated (i think it will likely be removed in future versions), and it is suggesting to set the BackgroundSkyRotationDegrees property directly
So do you know how you’d set the property directly with c#, mostly for automation reason’s since we’ll probably loose SetSkyRotationDegrees() method in the future. I also checked for BackgorundSkyRotationDegrees Property Implimantation and there’s nothing currently.