ObjectSelectorHandlerWithLabelsAttribute
A class attribute that allows you to define label constraints on a MonoBehavior or ScriptableObject 's field in the object selector.
Read time 3 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.SearchService
- Assembly: UnityEngine.CoreModule
- Inherits from: Attribute
[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
Constructor | Description |
|---|---|
| ObjectSelectorHandlerWithLabelsAttribute(System.Boolean,System.String[]) | Constructor used to declare the ObjectSelectorHandlerWithLabelsAttribute on a field. |
| ObjectSelectorHandlerWithLabelsAttribute(System.String[]) | Constructor used to declare the ObjectSelectorHandlerWithLabelsAttribute on a field. |
Properties
Property | Description |
|---|---|
| labels | The labels to match. |
| matchAll | Boolean that indicates whether all labels, or only one of them, should match. Default is true. |