We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just a suggestion to support adjusting the various colors, etc. in the RenderSettings class/object.
The text was updated successfully, but these errors were encountered:
I like it! Added to my todo list
Sorry, something went wrong.
Just a note, if folks need something like this you can create some helper static methods in a static class, like this:
public static class GlobalHelpers { private static Tween FogStartDistanceTween; private static Tween FogEndDistanceTween; private static Tween AmbientColorTween; // method to change fog settings public static void TweenFogDistances(float start, float end, float time, Action completeLambda = null) { FogStartDistanceTween.Kill(); FogEndDistanceTween.Kill(); FogStartDistanceTween = DOTween.To(() => RenderSettings.fogStartDistance, (x) => RenderSettings.fogStartDistance = x, start, time); FogEndDistanceTween = DOTween.To(() => RenderSettings.fogEndDistance, (x) => RenderSettings.fogEndDistance = x, end, time); FogStartDistanceTween.OnComplete(() => completeLambda?.Invoke()); } // method to change ambient color public static Tween TweenAmbientColor(Color color, float time) { AmbientColorTween.Kill(); AmbientColorTween = DOTween.To(() => RenderSettings.ambientLight, (x) => RenderSettings.ambientLight = x, color, time); return AmbientColorTween; } }
Demigiant
No branches or pull requests
Just a suggestion to support adjusting the various colors, etc. in the RenderSettings class/object.
The text was updated successfully, but these errors were encountered: