CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
Loading...
Searching...
No Matches

◆ ImportAndLoad< T >()

static T ImportAndLoad< T > ( [NotNull] Path path,
ImportAssetOptions options = ImportAssetOptions.Default )
static

Imports a file at a given path that was created or modified 'externally', then loads and returns the asset object. See CodeSmileEditor.Asset.File.Import for more info.

You may want to use the Create overloads that automatically create the file, then import and load the new file:

Parameters
pathPath to an asset.
optionsImportAssetOptions
Template Parameters
TA UnityEngine.Object derived type.
Returns
The asset object, or null if the asset could not be loaded or is not of type T.
See also
Type Constraints
T :Object 

Referenced by Asset.File.LoadOrCreate< T >().

+ Here is the caller graph for this function: