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); }
public static void ObjectLabelField(SerializedProperty property, params GUILayoutOption[] options) { var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle(); ObjectLabelField(property, style); }
public static void ObjectLabelField(Rect position, string guid, int fileID) { var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle(); ObjectLabelField(position, guid, fileID, style); }
public static void ObjectLabelField(int instanceID, params GUILayoutOption[] options) { var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle(); ObjectLabelField(instanceID, style); }
public static void ObjectLabelField(string assetPath, params GUILayoutOption[] options) { var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle(); ObjectLabelField(assetPath, style); }
public static float ProgressBarWithLabel(string label, float value, params GUILayoutOption[] options) { var style = CustomGUIDetail.ProgressBarDefaultGUIStyle(); return(ProgressBarWithLabel(label, value, style, options)); }
public static void ObjectLabelField(string guid, int fileID, params GUILayoutOption[] options) { var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle(); ObjectLabelField(guid, fileID, style); }
public static void ObjectLabelField(Rect position, SerializedProperty property) { var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle(); ObjectLabelField(position, property, style); }
public static void ObjectLabelField(Rect position, Object value) { var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle(); ObjectLabelField(position, value, style); }
public static float ProgressBarWithLabel(Rect position, GUIContent label, float value) { var style = CustomGUIDetail.ProgressBarDefaultGUIStyle(); return(ProgressBarWithLabel(position, label, value, style)); }
public static float ProgressBar(Rect position, float value) { var style = CustomGUIDetail.ProgressBarDefaultGUIStyle(); return(ProgressBar(position, value, style)); }
public static void ProgressBarWithLabel(Rect position, SerializedProperty property, string label) { var style = CustomGUIDetail.ProgressBarDefaultGUIStyle(); ProgressBarWithLabel(position, property, label, style); }
public static void ProgressBar(Rect position, SerializedProperty property, GUIContent label) { var style = CustomGUIDetail.ProgressBarDefaultGUIStyle(); ProgressBar(position, property, label, style); }
public static void ProgressBarWithLabel(SerializedProperty property, string label, params GUILayoutOption[] options) { var style = CustomGUIDetail.ProgressBarDefaultGUIStyle(); ProgressBarWithLabel(property, label, style, options); }
public static void ObjectLabelField(Rect position, int instanceID) { var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle(); ObjectLabelField(position, instanceID, style); }
public static void ObjectLabelField(Object value, params GUILayoutOption[] options) { var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle(); ObjectLabelField(value, style); }
public static void ObjectLabelField(Rect position, string assetPath) { var style = CustomGUIDetail.ObjectLabelFieldDefaultGUIStyle(); ObjectLabelField(position, assetPath, style); }
public static float ProgressBar(float value, params GUILayoutOption[] options) { var style = CustomGUIDetail.ProgressBarDefaultGUIStyle(); return(ProgressBar(value, style, options)); }