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

◆ Import() [3/3]

static void Import ( [NotNull] Path path,
ImportAssetOptions options = ImportAssetOptions::Default )
static

Imports a file at a given path that was created or modified 'externally'. Externally refers to any means other than AssetDatabase methods such as System.IO or batch scripts.

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
See also

Definition at line 276 of file Asset.File.cs.

277 {
278 ThrowIf.ArgumentIsNull(path, nameof(path));
279 ThrowIf.DoesNotExistInFileSystem(path);
280
281 AssetDatabase.ImportAsset(path, options);
282 }

Referenced by Import(), Import(), and Asset.SubAsset.SetMain().

+ Here is the caller graph for this function: