文档

Unity Engine

Unity Engine

GraphToolbarElementAttribute

Attribute used to bind a toolbar element to a specific Graph type.
阅读时间3 分钟最后更新于 1 个月前

Definition

[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]public sealed class GraphToolbarElementAttribute : Attribute

Remarks

Apply this attribute to toolbar element classes to make them appear in the toolbar when editing the specified graph type. The element will also appear for types derived from the specified graph type.

Constructors

Constructor

Description

GraphToolbarElementAttribute(System.String,System.Type,System.Int32)Creates a new GraphToolbarElement attribute.

Properties

Property

Description

GraphTypeThe graph type this toolbar element is associated with.
IdThe unique identifier for this toolbar element.
OrderThe display order of this toolbar element. Lower values appear first.

Inheritance

Inherited Members