AssetUtilities

Utility functions for Unity assets.

namespace Sirenix.Utilities.Editor
{
public static class AssetUtilities
}

Requirements

Namespace: Sirenix.Utilities.Editor
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Static Methods

Return Type Definition Description
bool CanCreateNewAsset<T>() Tests if an asset can be created from a type.
bool CanCreateNewAsset<T>(ref Type) Tests if an asset can be created from a type.
void CreateNewAsset<T>(string, string) Creates a new asset of the specified type.
IEnumerable<Object> GetAllAssetsOfType(Type) Gets all assets of the specified type.
IEnumerable<T> GetAllAssetsOfType<T>() Gets all assets of the specified type.
IEnumerable<AssetSearchResult> GetAllAssetsOfTypeWithProgress(Type, string) Gets all assets of the specified type.
string GetAssetLocation(Object) Gets project path to the specified asset.