Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.EditorConfiguration.AssetDatabase Class Reference

Detailed Description

Faced API class to handling directories related tasks.

Static Public Member Functions

static T LoadAssetAtCache< T > (string assetPath)
 Loads asset in GDK's cache folder. More...
 
static T LoadAssetAtCacheResources< T > (string assetPath)
 Loads asset in GDK cache's resource related folder. More...
 
static T LoadAssetAtPath< T > (string assetPath)
 Loads asset in GDK related folder. More...
 
static bool DeleteAssetAtCacheResources (string assetPath)
 Deletes asset at GDK cache's resources folder, More...
 
static bool DeleteAssetAtCache (string assetPath)
 Deletes asset at GDK cache folder, More...
 
static bool DeleteAsset (string assetPath)
 Deletes asset from GDK related path. More...
 
static void SaveToCache (UnityEngine.Object asset, string relativePath, string name)
 Saves asset to the cache folder. More...
 
static void SaveToCacheResources (UnityEngine.Object asset, string relativePath, string name)
 Saves asset to the cache resources folder. More...
 
static void SaveAsAsset (UnityEngine.Object asset, string fullPath, string name)
 Creates asset by the path. More...
 

Member Function Documentation

◆ DeleteAsset()

static bool Doloro.EditorConfiguration.AssetDatabase.DeleteAsset ( string  assetPath)
static

Deletes asset from GDK related path.

Parameters
assetPathPath to asset including its extension inside GDK folder.
Returns
Is the asset found and removed.

◆ DeleteAssetAtCache()

static bool Doloro.EditorConfiguration.AssetDatabase.DeleteAssetAtCache ( string  assetPath)
static

Deletes asset at GDK cache folder,

Parameters
assetPathPath to asset including its extension inside cache folder.
Returns
Is the asset found and removed.

◆ DeleteAssetAtCacheResources()

static bool Doloro.EditorConfiguration.AssetDatabase.DeleteAssetAtCacheResources ( string  assetPath)
static

Deletes asset at GDK cache's resources folder,

Parameters
assetPathPath to asset including its extension inside cache folder.
Returns
Is the asset found and removed.

◆ LoadAssetAtCache< T >()

static T Doloro.EditorConfiguration.AssetDatabase.LoadAssetAtCache< T > ( string  assetPath)
static

Loads asset in GDK's cache folder.

Template Parameters
TType of loading asset.
Parameters
assetPathPath to asset including its extension.
Returns
Asset instance.
See also
RuntimeConstants.RELATED_CACHE_FORLDER
Type Constraints
T :UnityEngine.Object 
T :LoadAssetAtPath<T> 
T :RuntimeConstants.RELATED_CACHE_FORLDER 
T :assetPath 

◆ LoadAssetAtCacheResources< T >()

static T Doloro.EditorConfiguration.AssetDatabase.LoadAssetAtCacheResources< T > ( string  assetPath)
static

Loads asset in GDK cache's resource related folder.

Template Parameters
TType of loading asset.
Parameters
assetPathPath to asset including its extension.
Returns
Asset instance.
See also
RuntimeConstants.RELATED_CACHE_RESOURCES_FORLDER
Type Constraints
T :UnityEngine.Object 
T :LoadAssetAtPath<T> 
T :RuntimeConstants.RELATED_CACHE_RESOURCES_FORLDER 
T :assetPath 

◆ LoadAssetAtPath< T >()

static T Doloro.EditorConfiguration.AssetDatabase.LoadAssetAtPath< T > ( string  assetPath)
static

Loads asset in GDK related folder.

Template Parameters
TType of loading asset.
Parameters
assetPathPath to asset including its extension.
Returns
Asset instance.
Type Constraints
T :UnityEngine.Object 
T :UnityEditor.AssetDatabase.LoadAssetAtPath<T> 
T :RuntimeConstants.ROOT_FOLDER 
T :assetPath 

◆ SaveAsAsset()

static void Doloro.EditorConfiguration.AssetDatabase.SaveAsAsset ( UnityEngine.Object  asset,
string  fullPath,
string  name 
)
static

Creates asset by the path.

Parameters
assetObject to save as asset.
fullPathPath of the asset related to the project's root.
nameName of the asset without extension.
Exceptions
ArgumentNullExceptionasset is null.
ArgumentExceptionname is null or empty.

◆ SaveToCache()

static void Doloro.EditorConfiguration.AssetDatabase.SaveToCache ( UnityEngine.Object  asset,
string  relativePath,
string  name 
)
static

Saves asset to the cache folder.

Parameters
assetObject to save as asset.
relativePath
nameName of the asset without extension.
See also
RuntimeConstants.RELATED_CACHE_FORLDER

◆ SaveToCacheResources()

static void Doloro.EditorConfiguration.AssetDatabase.SaveToCacheResources ( UnityEngine.Object  asset,
string  relativePath,
string  name 
)
static

Saves asset to the cache resources folder.

Parameters
assetObject to save as asset.
relativePath
nameName of the asset without extension.
See also
RuntimeConstants.RELATED_CACHE_RESOURCES_FORLDER

The documentation for this class was generated from the following file: