UnityEditor.EditorWrapper.OnInteractivePreviewGUI C# (CSharp) Method

OnInteractivePreviewGUI() public method

public OnInteractivePreviewGUI ( Rect r, GUIStyle background ) : void
r UnityEngine.Rect
background UnityEngine.GUIStyle
return void
        public void OnInteractivePreviewGUI(Rect r, GUIStyle background)
        {
            if (this.editor != null)
            {
                this.editor.OnInteractivePreviewGUI(r, background);
            }
        }

Usage Example

示例#1
0
        public override void OnInteractivePreviewGUI(Rect r, GUIStyle background)
        {
            EditorWrapper previewEditor = this.previewEditor;

            if (previewEditor != null)
            {
                previewEditor.OnInteractivePreviewGUI(r, background);
            }
            AssetStoreAsset firstAsset = AssetStoreAssetSelection.GetFirstAsset();

            if (firstAsset != null && !firstAsset.HasLivePreview && !string.IsNullOrEmpty(firstAsset.dynamicPreviewURL))
            {
                GUIContent statusWheel = AssetStoreAssetInspector.StatusWheel;
                r.y += (r.height - (float)statusWheel.image.height) / 2f;
                r.x += (r.width - (float)statusWheel.image.width) / 2f;
                GUI.Label(r, AssetStoreAssetInspector.StatusWheel);
                base.Repaint();
            }
        }
All Usage Examples Of UnityEditor.EditorWrapper::OnInteractivePreviewGUI