CodeSmile AssetDatabase 1.9
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 271 of file Asset.File.cs.

272 {
273 ThrowIf.ArgumentIsNull(path, nameof(path));
274 ThrowIf.DoesNotExistInFileSystem(path);
275
276 AssetDatabase.ImportAsset(path, options);
277 }

Referenced by Asset.SubAsset.SetMain().

+ Here is the caller graph for this function: