public static void Create(SerializedProperty propPath, SerializedProperty propMediaSource, string fileExtensions, bool autoLoadMedia, int mediaReferencePickerId = -1) { RecentItems.Load(); RecentMenu menu = new RecentMenu(); menu.FileBrowseButton(propPath, propMediaSource, fileExtensions, autoLoadMedia, mediaReferencePickerId); }
private static void LoadSettings() { _platformIndex = EditorPrefs.GetInt(SettingsPrefix + "PlatformIndex", -1); _showAlpha = EditorPrefs.GetBool(SettingsPrefix + "ShowAlphaChannel", false); _showPreview = EditorPrefs.GetBool(SettingsPrefix + "ShowPreview", true); _allowDeveloperMode = EditorPrefs.GetBool(SettingsPrefix + "AllowDeveloperMode", false); _HTTPHeadersToggle = EditorPrefs.GetBool(SettingsPrefix + "HTTPHeadersToggle", false); RecentItems.Load(); }