コード例 #1
0
 public override void OnInteractivePreviewGUI(Rect r, GUIStyle background)
 {
     InteractivePreview.PLANE             = _plane;
     InteractivePreview.PLANE_MATERIAL    = blueprintMaterial;
     InteractivePreview.RESTRICT_ROTATION = false;
     InteractivePreview.OnInteractivePreviewGui(r, background, _mesh, _materialList.ToArray());
 }
コード例 #2
0
        public override void OnInteractivePreviewGUI(Rect r, GUIStyle background)
        {
            Material[] mats = new Material[3];

            if (_roomStyle.floorSurface != null)
            {
                mats[0] = _roomStyle.floorSurface.material;
            }
            else
            {
                mats[0] = AssetDatabase.GetBuiltinExtraResource <Material>("Default-Material.mat");
            }

            if (_roomStyle.wallSurface != null)
            {
                mats[1] = _roomStyle.wallSurface.material;
            }
            else
            {
                mats[1] = AssetDatabase.GetBuiltinExtraResource <Material>("Default-Material.mat");
            }

            if (_roomStyle.ceilingSurface != null)
            {
                mats[2] = _roomStyle.ceilingSurface.material;
            }
            else
            {
                mats[2] = AssetDatabase.GetBuiltinExtraResource <Material>("Default-Material.mat");
            }
            InteractivePreview.RESTRICT_ROTATION = false;
            InteractivePreview.OnInteractivePreviewGui(r, background, mesh, mats);
        }
コード例 #3
0
ファイル: GableEditor.cs プロジェクト: ishui/unity3DScripts
        public override void OnInteractivePreviewGUI(Rect r, GUIStyle background)
        {
            Material mat;

            if (_gable.surface != null)
            {
                mat = _gable.surface.material;
            }
            else
            {
                mat = AssetDatabase.GetBuiltinExtraResource <Material>("Default-Material.mat");
            }

            InteractivePreview.PLANE             = _plane;
            InteractivePreview.PLANE_MATERIAL    = blueprintMaterial;
            InteractivePreview.RESTRICT_ROTATION = false;
            InteractivePreview.OnInteractivePreviewGui(r, background, _gable.previewMesh, new[] { mat });
        }
コード例 #4
0
ファイル: FacadeEditor.cs プロジェクト: ishui/unity3DScripts
 public override void OnInteractivePreviewGUI(Rect r, GUIStyle background)
 {
     InteractivePreview.OnInteractivePreviewGui(r, background, _mesh, _materialList.ToArray());
 }
コード例 #5
0
ファイル: FacadeEditor.cs プロジェクト: ishui/unity3DScripts
 private void OnEnable()
 {
     _facade = (Facade)target;
     UpdatePreview();
     InteractivePreview.Reset();
 }
コード例 #6
0
 private void OnEnable()
 {
     _chimney = target as Chimney;
     UpdatePreview();
     InteractivePreview.Reset();
 }
コード例 #7
0
 public override void OnInteractivePreviewGUI(Rect r, GUIStyle background)
 {
     InteractivePreview.RESTRICT_ROTATION = false;
     InteractivePreview.OnInteractivePreviewGUI(r, background, _model, Matrix4x4.identity);
 }