private void OnWillRenderObject() { if (!Application.isPlaying && Camera.current != null && WeatherMakerLightManagerScript.Instance != null) { SkyPlaneProfile.UpdateSkyPlane(Camera.current, MeshRenderer.sharedMaterial, gameObject, WeatherMakerLightManagerScript.Instance.SunOrthographic); } }
private void OnWillRenderObject() { if (!Application.isPlaying && Camera.current != null) { SkyPlaneProfile.UpdateSkyPlane(Camera.current, MeshRenderer.sharedMaterial, gameObject); } }
protected override void Update() { base.Update(); if (SkyPlaneProfile == null) { SkyPlaneProfile = Resources.Load <WeatherMakerSkyProfileScript>("WeatherMakerSkyProfile_Procedural"); } if (!Application.isPlaying && Camera.main != null) { SkyPlaneProfile.UpdateSkyPlane(Camera.main, MeshRenderer.sharedMaterial, gameObject); } }
protected override void Update() { base.Update(); if (SkyPlaneProfile == null) { SkyPlaneProfile = Resources.Load <WeatherMakerSkyProfileScript>("WeatherMakerSkyProfile_Procedural"); } if (!Application.isPlaying && Camera.main != null && WeatherMakerLightManagerScript.Instance != null) { SkyPlaneProfile.UpdateSkyPlane(Camera.main, MeshRenderer.sharedMaterial, gameObject, WeatherMakerLightManagerScript.Instance.SunOrthographic); } }