ElementInfoAttribute
Provide a information to order and categorize at element level (in a category).
阅读时间3 分钟最后更新于 1 个月前
Definition
- Type: Class
- Namespace: UnityEngine.Categorization
- Assembly: UnityEngine.CoreModule
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]public sealed class ElementInfoAttribute : Attribute
Remarks
Element will be sorted in the category using first the ElementInfoAttribute.Order property, and if equals, using then the ElementInfoAttribute.Name.
See also IRenderPipelineGraphicsSettings for usage example.
See also CategoryInfoAttribute.
Properties
Property | Description |
|---|---|
| Name | The name to use for this element. |
| Order | The position this element should take in the parent category. |