UnityEditor.EditorGUILayout.Space C# (CSharp) Method

Space() public static method

Make a small space between the previous control and the following.

public static Space ( ) : void
return void
        public static void Space()
        {
            GUILayoutUtility.GetRect((float) 6f, (float) 6f);
        }

Usage Example

示例#1
0
            private void OnGUI()
            {
                EGL.LabelField("Use Settings");
                settings = EGL.ObjectField(settings, typeof(ImportSettings), false) as ImportSettings;

                EGL.Space();

                if (settings && CenteredButton("OK"))
                {
                    var reference = new MetaSpriteImportData
                    {
                        metaSpriteSettingsGuid = AssetDatabase.AssetPathToGUID(AssetDatabase.GetAssetPath(settings))
                    };
                    foreach (var path in assetPaths)
                    {
                        var import = AssetImporter.GetAtPath(path);
                        import.userData = JsonUtility.ToJson(reference);
                        import.SaveAndReimport();
                    }

                    finishedAction(settings);
                    this.Close();
                }

                if (CenteredButton("Cancel"))
                {
                    this.Close();
                }
            }
All Usage Examples Of UnityEditor.EditorGUILayout::Space