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

◆ Path() [3/3]

Path ( [NotNull] Object asset)

Creates an asset path from an asset instance.

Throws exception if asset is not an asset on disk.

Parameters
assetInstance of an asset.
See also

Definition at line 270 of file Asset.Path.cs.

271 {
272 ThrowIf.ArgumentIsNull(asset, nameof(asset));
273 ThrowIf.NotInDatabase(asset);
274
275 m_RelativePath = Get(asset);
276 }

References Get().

+ Here is the call graph for this function: