예제 #1
0
        public PreviewRenderUtility()
        {
            this.m_PreviewScene = new PreviewScene("Preview Scene");
            GameObject gameObject = PreviewRenderUtility.CreateLight();

            this.previewScene.AddGameObject(gameObject);
            this.Light0 = gameObject.GetComponent <Light>();
            GameObject gameObject2 = PreviewRenderUtility.CreateLight();

            this.previewScene.AddGameObject(gameObject2);
            this.Light1       = gameObject2.GetComponent <Light>();
            this.Light0.color = SceneView.kSceneViewFrontLight;
            this.Light1.transform.rotation = Quaternion.Euler(340f, 218f, 177f);
            this.Light1.color = new Color(0.4f, 0.4f, 0.45f, 0f) * 0.7f;
        }