Esempio n. 1
0
        public static void ObjectLabelField(Rect position, string guid, int fileID, GUIStyle style)
        {
            var    assetPath = AssetDatabase.GUIDToAssetPath(guid);
            Object value;

            if (fileID != 0)
            {
                value = CustomGUIDetail.LoadAllAssetsAtPath(assetPath)
                        .Where(x => Unsupported.GetLocalIdentifierInFile(x.GetInstanceID()) == fileID)
                        .FirstOrDefault();
            }
            else
            {
                value = AssetDatabase.LoadMainAssetAtPath(assetPath);
            }
            ObjectLabelField(position, value, style);
        }
Esempio n. 2
0
        public static void ObjectLabelField(SerializedProperty property, params GUILayoutOption[] options)
        {
            var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle();

            ObjectLabelField(property, style);
        }
Esempio n. 3
0
        public static void ObjectLabelField(Rect position, string guid, int fileID)
        {
            var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle();

            ObjectLabelField(position, guid, fileID, style);
        }
Esempio n. 4
0
        public static void ObjectLabelField(int instanceID, params GUILayoutOption[] options)
        {
            var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle();

            ObjectLabelField(instanceID, style);
        }
Esempio n. 5
0
        public static void ObjectLabelField(string assetPath, params GUILayoutOption[] options)
        {
            var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle();

            ObjectLabelField(assetPath, style);
        }
Esempio n. 6
0
        public static float ProgressBarWithLabel(string label, float value, params GUILayoutOption[] options)
        {
            var style = CustomGUIDetail.ProgressBarDefaultGUIStyle();

            return(ProgressBarWithLabel(label, value, style, options));
        }
Esempio n. 7
0
        public static void ObjectLabelField(string guid, int fileID, params GUILayoutOption[] options)
        {
            var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle();

            ObjectLabelField(guid, fileID, style);
        }
Esempio n. 8
0
        public static void ObjectLabelField(Rect position, SerializedProperty property)
        {
            var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle();

            ObjectLabelField(position, property, style);
        }
Esempio n. 9
0
        public static void ObjectLabelField(Rect position, Object value)
        {
            var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle();

            ObjectLabelField(position, value, style);
        }
Esempio n. 10
0
        public static float ProgressBarWithLabel(Rect position, GUIContent label, float value)
        {
            var style = CustomGUIDetail.ProgressBarDefaultGUIStyle();

            return(ProgressBarWithLabel(position, label, value, style));
        }
Esempio n. 11
0
        public static float ProgressBar(Rect position, float value)
        {
            var style = CustomGUIDetail.ProgressBarDefaultGUIStyle();

            return(ProgressBar(position, value, style));
        }
Esempio n. 12
0
        public static void ProgressBarWithLabel(Rect position, SerializedProperty property, string label)
        {
            var style = CustomGUIDetail.ProgressBarDefaultGUIStyle();

            ProgressBarWithLabel(position, property, label, style);
        }
Esempio n. 13
0
        public static void ProgressBar(Rect position, SerializedProperty property, GUIContent label)
        {
            var style = CustomGUIDetail.ProgressBarDefaultGUIStyle();

            ProgressBar(position, property, label, style);
        }
Esempio n. 14
0
        public static void ProgressBarWithLabel(SerializedProperty property, string label, params GUILayoutOption[] options)
        {
            var style = CustomGUIDetail.ProgressBarDefaultGUIStyle();

            ProgressBarWithLabel(property, label, style, options);
        }
Esempio n. 15
0
        public static void ObjectLabelField(Rect position, int instanceID)
        {
            var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle();

            ObjectLabelField(position, instanceID, style);
        }
Esempio n. 16
0
        public static void ObjectLabelField(Object value, params GUILayoutOption[] options)
        {
            var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle();

            ObjectLabelField(value, style);
        }
Esempio n. 17
0
        public static void ObjectLabelField(Rect position, string assetPath)
        {
            var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle();

            ObjectLabelField(position, assetPath, style);
        }
Esempio n. 18
0
        public static float ProgressBar(float value, params GUILayoutOption[] options)
        {
            var style = CustomGUIDetail.ProgressBarDefaultGUIStyle();

            return(ProgressBar(value, style, options));
        }