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()); }
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); }
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 }); }
public override void OnInteractivePreviewGUI(Rect r, GUIStyle background) { InteractivePreview.OnInteractivePreviewGui(r, background, _mesh, _materialList.ToArray()); }
private void OnEnable() { _facade = (Facade)target; UpdatePreview(); InteractivePreview.Reset(); }
private void OnEnable() { _chimney = target as Chimney; UpdatePreview(); InteractivePreview.Reset(); }
public override void OnInteractivePreviewGUI(Rect r, GUIStyle background) { InteractivePreview.RESTRICT_ROTATION = false; InteractivePreview.OnInteractivePreviewGUI(r, background, _model, Matrix4x4.identity); }