public static UInt64 IntField(string label, UInt64 value)
        {
            UnityEditor.EditorGUILayout.LabelField("");
            Rect position = GUILayoutUtility.GetLastRect();

            position.height = UnityEditor.EditorGUIUtility.singleLineHeight;

            return(EditorGUIEx.IntField(position, label, value));
        }
Example #2
0
        public static string AssetPath(string label, string assetPath, System.Type type, PathOptions pathOptions)
        {
            UnityEditor.EditorGUILayout.LabelField("");
            Rect position = GUILayoutUtility.GetLastRect();

            UnityEditor.EditorGUILayout.LabelField("");

            return(EditorGUIEx.AssetPath(position, label, assetPath, type, pathOptions));
        }
        public static char CharField(char value)
        {
            UnityEditor.EditorGUILayout.LabelField("");
            Rect position = GUILayoutUtility.GetLastRect();

            position.height = UnityEditor.EditorGUIUtility.singleLineHeight;

            return(EditorGUIEx.CharField(position, value));
        }
Example #4
0
        public static Keyword KeywordField(string label, Keyword keyword, KeywordsConfig keywordsConfig, bool selectionOnly = false)
        {
            UnityEditor.EditorGUILayout.LabelField("");
            Rect position = GUILayoutUtility.GetLastRect();

            position.height = UnityEditor.EditorGUIUtility.singleLineHeight;

            Keyword temp = EditorGUIEx.KeywordField(position, label, keyword, keywordsConfig, selectionOnly);

            if (EditorGUIEx.IsAddingKeyword)
            {
                UnityEditor.EditorGUILayout.LabelField("");
            }

            return(temp);
        }