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

◆ Add() [2/2]

static void Add ( [NotNull] Object asset,
[NotNull] String[] labels )
static

Adds several labels to an asset's list of labels.

Parameters
assetInstance of an asset.
labelsThe labels to add.
See also

Definition at line 101 of file Asset.Label.cs.

102 {
103 var existingLabels = new List<String>(GetAll(asset));
104 existingLabels.AddRange(labels);
105 AssetDatabase.SetLabels(asset, existingLabels.ToArray());
106 }
static String[] GetAll([NotNull] Object asset)
Returns an asset's labels.

References Asset.Label.GetAll().

+ Here is the call graph for this function: