文档

Unity Engine


Unity Engine


ObjectSelectorHandlerWithTagsAttribute

A class attribute that allows you to define tag constraints on a MonoBehavior or ScriptableObject 's field in the object selector.
阅读时间3 分钟最后更新于 1 个月前

Definition

警告
Removed. ObjectSelectorHandlerWithTagsAttribute has been deprecated. Use SearchContextAttribute instead.
[AttributeUsage(AttributeTargets.Field)]public class ObjectSelectorHandlerWithTagsAttribute : Attribute

Remarks

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

Constructors

Constructor

Description

ObjectSelectorHandlerWithTagsAttribute(System.String[])Constructor used to declare the ObjectSelectorHandlerWithTagsAttribute on a field.

Properties

Property

Description

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

Inheritance

Inherited Members