DemiLib
A collection of Demigiant's utility libraries for Unity (https://github.com/Demigiant/demilib)
DG.DemiEditor.DeEditorPanelUtils Class Reference

Utilities for Editor Panels. More...

Static Public Member Functions

static T ConnectToSourceAsset< T > (string adbFilePath, bool createIfMissing=false, bool createFoldersIfMissing=false)
 Connects to a ScriptableObject asset. If the asset already exists at the given path, loads it and returns it. Otherwise, depending on the given parameters, either returns NULL or automatically creates it before loading and returning it. More...
 

Detailed Description

Utilities for Editor Panels.

Member Function Documentation

static T DG.DemiEditor.DeEditorPanelUtils.ConnectToSourceAsset< T > ( string  adbFilePath,
bool  createIfMissing = false,
bool  createFoldersIfMissing = false 
)
static

Connects to a ScriptableObject asset. If the asset already exists at the given path, loads it and returns it. Otherwise, depending on the given parameters, either returns NULL or automatically creates it before loading and returning it.

Template Parameters
TAsset type
Parameters
adbFilePathFile path (relative to Unity's project folder)
createIfMissingIf TRUE and the requested asset doesn't exist, forces its creation
createFoldersIfMissingIf TRUE also creates the path folders if they don't exist
Type Constraints
T :ScriptableObject 

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