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

◆ Add() [1/2]

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

Adds a single label to an asset's list of labels.

Parameters
assetInstance of an asset.
labelThe label to add.
See also

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

85 {
86 var existingLabels = new List<String>(GetAll(asset));
87 existingLabels.Add(label);
88 AssetDatabase.SetLabels(asset, existingLabels.ToArray());
89 }
static String[] GetAll([NotNull] Object asset)
Returns an asset's labels.

References Asset.Label.GetAll().

+ Here is the call graph for this function: