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
- Type: Class
- Namespace: UnityEngine.SearchService
- Assembly: UnityEngine.CoreModule
- Inherits from: Attribute
[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 |
|---|---|
| tags | The tags to match. Because a GameObject can only have one tag, only one of them must be present. |