CodeSmile AssetDatabase 1.10
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 88 of file Asset.Label.cs.

89 {
90 var existingLabels = new List<String>(GetAll(asset));
91 existingLabels.Add(label);
92 AssetDatabase.SetLabels(asset, existingLabels.ToArray());
93 }

References GetAll().

+ Here is the call graph for this function: