文档

Unity Engine

Unity Engine

ObjectSelectorHandlerWithLabelsAttribute

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

Definition

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

Remarks

This attribute allows you to specify labels that an Asset must have for the object selector to display it.

Constructors

Properties

Property

Description

labelsThe labels to match.
matchAllBoolean that indicates whether all labels, or only one of them, should match. Default is true.

Inheritance

Inherited Members