Capítulo 746 de 859

Chapter 746: NodeAttribute

Core Idea

NodeBuilder is going to create instances of this class during the build process of nodes. They represent the final shader attributes that are going to be generated by the builder. Arrays of node attributes is maintained in NodeBuilder#attributes and NodeBuilder#bufferAttributes for this purpose.

Key Concepts

  • isNodeAttribute : boolean (readonly): This flag can be used for type testing.
  • name : string: The name of the attribute.
  • node : Node: An optional reference to the node.
  • type : string: The type of the attribute.

Reference Tables

Constructor

Signature
new NodeAttribute( name : string, type : string, node : Node )

Properties

PropertyDescription
.isNodeAttribute : boolean (readonly)This flag can be used for type testing.
.name : stringThe name of the attribute.
.node : NodeAn optional reference to the node.
.type : stringThe type of the attribute.

Key Takeaways

  1. Most relevant properties: isNodeAttribute, name, node, type.

Connects To