|
static Object[] | GetAllAssets (bool progressBar=false) |
| Get all main assets in the project folder. More...
|
|
static string[] | GetAllAssetLabels (params Object[] assets) |
| Get all asset labels used in project, or only find the ones used by assigned assets. More...
|
|
static T[] | LoadAssets< T > (string filter=null, params string[] searchInFolders) |
| Load all specified type assets with the search filter in the folders. More...
|
|
static bool | OpenAsset< T > (int instanceID, Action< T > handler) |
| Common template method to open an asset. More...
|
|
static string | GetObjectOrder (Object source, bool assetFirst=true) |
| Get an order string of given object for sorting. More...
|
|
static string | GetTypeOrder (Type source, bool builtinFirst=true) |
| Get an order string of given type for sorting. More...
|
|
static void | ReplaceDrawerType (Type type, Type drawer, bool children=true, Type original=null) |
| Replace the default property drawer type for the specified type. More...
|
|
static Type | GetDrawerType (Type type) |
| Get the creatable property drawer type for the specified type. More...
|
|
static PropertyDrawer | CreateDrawer (Type type, FieldInfo field, PropertyAttribute attribute=null) |
| Create a property drawer instance. More...
|
|
static void | OpenAbout (Object obj) |
| Open the about message of the specified object. More...
|
|
static bool | CheckIoCreatable (string path, bool overwrite=false, bool exception=false) |
| Determine if the path can be used to create a file or directory. More...
|
|
static IEnumerable< Type > | GetExposingTypes (bool editor=false) |
| Get types appropriate to expose in the Inspector to select members, optional to include editor types. More...
|
|
Include some convenient methods for editor or asset operation.
3
static void OpenAbout |
( |
Object |
obj | ) |
|
|
static |
Open the about message of the specified object.
This fetches the messages from the object type attributes:
- Brief message from
System.ComponentModel.DescriptionAttribute
.
- Online manual URL from
UnityEngine.HelpURLAttribute
.
Show a dialog if there's the brief, and with a button to open the URL if exists. Otherwise, directly open the URL, or warning if not any message.
- Parameters
-
obj | The object to retrieve documentation for. |
static IEnumerable<Type> GetExposingTypes |
( |
bool |
editor = false | ) |
|
|
static |
Get types appropriate to expose in the Inspector to select members, optional to include editor types.
Include types from Unity and assemblies in the project folder. And what excluded is non-public, interface
, enum
, array or generic types.
- Parameters
-
editor | If set to true include editor types. |
- Returns
- The types.