You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a note, if folks need something like this you can create some helper static methods in a static class, like this:
publicstaticclassGlobalHelpers{privatestaticTweenFogStartDistanceTween;privatestaticTweenFogEndDistanceTween;privatestaticTweenAmbientColorTween;// method to change fog settingspublicstaticvoidTweenFogDistances(floatstart,floatend,floattime,ActioncompleteLambda=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 colorpublicstaticTweenTweenAmbientColor(Colorcolor,floattime){AmbientColorTween.Kill();AmbientColorTween=DOTween.To(()=>RenderSettings.ambientLight,(x)=>RenderSettings.ambientLight=x,color,time);returnAmbientColorTween;}}
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: