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

◆ Get() [2/3]

static String[] Get ( [NotNull] Object[] assets)
static

Converts an array of asset instances to their asset paths.

Parameters
assetsAsset instances.
Returns
An array of paths for each input object. The returned array has the same size. Items can be null if the input object was either null or not an asset.
See also

Definition at line 114 of file Asset.Path.Static.cs.

115 {
116 ThrowIf.ArgumentIsNull(assets, nameof(assets));
117
118 var objectCount = assets.Length;
119 var paths = new String[objectCount];
120 for (var i = 0; i < objectCount; i++)
121 paths[i] = Get(assets[i]);
122
123 return paths;
124 }
static Path Get([NotNull] Object asset)
Gets the relative path of an asset.

References Asset.Path.Get().

+ Here is the call graph for this function: