コード例 #1
0
 private void OnWillRenderObject()
 {
     if (!Application.isPlaying && Camera.current != null && WeatherMakerLightManagerScript.Instance != null)
     {
         SkyPlaneProfile.UpdateSkyPlane(Camera.current, MeshRenderer.sharedMaterial, gameObject, WeatherMakerLightManagerScript.Instance.SunOrthographic);
     }
 }
コード例 #2
0
 private void OnWillRenderObject()
 {
     if (!Application.isPlaying && Camera.current != null)
     {
         SkyPlaneProfile.UpdateSkyPlane(Camera.current, MeshRenderer.sharedMaterial, gameObject);
     }
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
        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);
            }
        }