Version: 2021.1

ObjectSelectorHandlerWithTagsAttribute

class in UnityEngine.SearchService

切换到手册

描述

A class attribute that allows you to define tag constraints on a MonoBehavior or ScriptableObject's field in the object selector.

This attribute allows you to specify tags that a GameObject or Component must have for the object selector to display it.

变量

tagsThe tags to match. Because a GameObject can only have one tag, only one of them must be present.

构造函数

ObjectSelectorHandlerWithTagsAttributeConstructor used to declare the ObjectSelectorHandlerWithTagsAttribute on a field.