Megadocs 0.0.1
All of megapop's internal libraries
Megapop.MegaCore.Editor.EditorAssetUtil Class Reference

Static Public Member Functions

static void DestroySubAsset (Object asset)
 
static void ReloadAsset (Object asset)
 
static void DestroySubAssets< T > (IEnumerable< T > assets)
 
static void CreateSubAsset (Object parent, Object child)
 
static List< T > GetSubAssets< T > (Object parent)
 
static List< ObjectGetSubAssets (string assetPath)
 
static List< T > GetSubAssets< T > (string assetPath)
 
static void VerifySubAssetList< T > (Object parent, List< T > list)
 Remove assets from the list that don't exist as subassets or are null, and add those that do. We want to keep the order of the list, so we don't recreate it completely. More...
 
static void SetSubassetHideFlags (Object parent, HideFlags flags)
 
static T CreateOrLoadScriptableObjectAsset< T > (string assetPathAndName)
 
static IEnumerable< T > GetAssetsFromDirectory< T > (string path, bool includeSubfolders=true)
 
static ScriptableObject CreateScriptableObjectAsset (string pathAndName, Type assetType)
 
static void RenameAsset (Object asset, string newName)
 
static IEnumerable< T > FindAssetsByType< T > ()
 

Member Function Documentation

◆ CreateOrLoadScriptableObjectAsset< T >()

static T Megapop.MegaCore.Editor.EditorAssetUtil.CreateOrLoadScriptableObjectAsset< T > ( string  assetPathAndName)
inlinestatic
Type Constraints
T :ScriptableObject 

◆ CreateScriptableObjectAsset()

static ScriptableObject Megapop.MegaCore.Editor.EditorAssetUtil.CreateScriptableObjectAsset ( string  pathAndName,
Type  assetType 
)
inlinestatic

◆ CreateSubAsset()

static void Megapop.MegaCore.Editor.EditorAssetUtil.CreateSubAsset ( Object  parent,
Object  child 
)
inlinestatic

◆ DestroySubAsset()

static void Megapop.MegaCore.Editor.EditorAssetUtil.DestroySubAsset ( Object  asset)
inlinestatic

◆ DestroySubAssets< T >()

static void Megapop.MegaCore.Editor.EditorAssetUtil.DestroySubAssets< T > ( IEnumerable< T >  assets)
inlinestatic
Type Constraints
T :Object 

◆ FindAssetsByType< T >()

static IEnumerable< T > Megapop.MegaCore.Editor.EditorAssetUtil.FindAssetsByType< T > ( )
inlinestatic
Type Constraints
T :Object 

◆ GetAssetsFromDirectory< T >()

static IEnumerable< T > Megapop.MegaCore.Editor.EditorAssetUtil.GetAssetsFromDirectory< T > ( string  path,
bool  includeSubfolders = true 
)
inlinestatic
Type Constraints
T :Object 

◆ GetSubAssets()

static List< Object > Megapop.MegaCore.Editor.EditorAssetUtil.GetSubAssets ( string  assetPath)
inlinestatic

◆ GetSubAssets< T >() [1/2]

static List< T > Megapop.MegaCore.Editor.EditorAssetUtil.GetSubAssets< T > ( Object  parent)
inlinestatic
Type Constraints
T :Object 

◆ GetSubAssets< T >() [2/2]

static List< T > Megapop.MegaCore.Editor.EditorAssetUtil.GetSubAssets< T > ( string  assetPath)
inlinestatic
Type Constraints
T :Object 

◆ ReloadAsset()

static void Megapop.MegaCore.Editor.EditorAssetUtil.ReloadAsset ( Object  asset)
inlinestatic

◆ RenameAsset()

static void Megapop.MegaCore.Editor.EditorAssetUtil.RenameAsset ( Object  asset,
string  newName 
)
inlinestatic

◆ SetSubassetHideFlags()

static void Megapop.MegaCore.Editor.EditorAssetUtil.SetSubassetHideFlags ( Object  parent,
HideFlags  flags 
)
inlinestatic

◆ VerifySubAssetList< T >()

static void Megapop.MegaCore.Editor.EditorAssetUtil.VerifySubAssetList< T > ( Object  parent,
List< T >  list 
)
inlinestatic

Remove assets from the list that don't exist as subassets or are null, and add those that do. We want to keep the order of the list, so we don't recreate it completely.

Type Constraints
T :Object 

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