[TagSelecter]

Displays a string field with a dropdown to select Unity tags.

Support Types

Type
Description

string

Tag name

Parameters

Parameter Name
Arguments
Description

SelectOnly

bool

Only allow the user to select a tag from the dropdown list.

Searchable

bool

Allow the user to search for tags.

FilterTags

string[]

Tags to filter from the dropdown list.

FilterMode

SelectorFilter

Filter mode to apply to the tags.

Examples

using UnityEngine;
using RenownedGames.Apex;

public class TagSelecterExample : MonoBehaviour
{
    [TagSelecter]
    public string tagField;

    [TagSelecter(Searchable = true)]
    public string searchableTag;

    [TagSelecter(FilterTags = new string[] { "Player", "Enemy" }, FilterMode = SelectorFilter.Include)]
    public string filteredTag;
}

Last updated