code/Attribute geo/PointBuilder
Documentation / Node reference / code nodes
code/Attribute
Reads or writes an attribute of the visited element.
Attributes
Unwired, it reads the attribute of the point, voxel or object being visited. Wire its value input to write it instead. With overrideEntityIndex on, it reads another element, at an index. inputIndex reads the builder's other inputs, which are read only.
Parameters
| Name | Type | What it does |
|---|---|---|
| name | AttributeName | Attribute to read or write. |
| geoType | UInt8 FLOAT · INDEX · U32 · VECTOR2 · VECTOR3 · VECTOR4 · VECTOR2_64 · VECTOR3_64 · FLOAT64 · VECTOR2_U32 · VECTOR3_U32 · VECTOR4_U32 | Type of a point or voxel attribute. |
| objectType | UInt8 BASE_NODE_HANDLE · BOOL · COLOR · COLOR4 · FLOAT · FLOAT64 · MATERIAL_HANDLE · NETWORK_PANEL_SCENE_OBJECT_CONFIG · S8 · S32 · STRING · U8 · U32 · VECTOR2 · VECTOR2_64 · VECTOR2UINT · VECTOR3 · VECTOR3_64 · VECTOR3UINT · VECTOR4 | Type of an object attribute. |
| mappedBuffer | Bool | Lets the CPU read the result without a copy. |
| overrideEntityIndex | Bool | Read another element than the visited one. |
| entityIndex | UInt32 | Index of the element to read. |
| inputIndex | UInt8 | Builder input to read. 0 is the visited geometry. |
Examples
Scenes you can open in the editor that teach this node.
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.