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

◆ Remove()

static void Remove ( Object asset,
String label )
static

Removes a label from an asset. Does nothing if the label doesn't exist.

Parameters
assetInstance of an asset.
labelLabel to remove.
See also

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

129 {
130 var labels = GetAll(asset).ToList();
131 labels.Remove(label);
132 SetAll(asset, labels.ToArray());
133 }
static String[] GetAll([NotNull] Object asset)
Returns an asset's labels.
static void SetAll([NotNull] Object asset, [NotNull] String[] labels)
Sets an asset's labels. Replaces any existing labels.

References Asset.Label.GetAll(), and Asset.Label.SetAll().

+ Here is the call graph for this function: