Capítulo 485 de 859

Chapter 485: StorageArrayElementNode

Core Idea

This class enables element access on instances of StorageBufferNode. In most cases, it is indirectly used when accessing elements with the StorageBufferNode#element method.

Key Concepts

  • isStorageArrayElementNode : boolean (readonly): This flag can be used for type testing.
  • storageBufferNode : StorageBufferNode: The storage buffer node.

Code Examples

const position = positionStorage.element( instanceIndex );
  • What it demonstrates: Typical usage of StorageArrayElementNode.

Reference Tables

Constructor

Signature
new StorageArrayElementNode( storageBufferNode : StorageBufferNode, indexNode : Node )

Properties

PropertyDescription
.isStorageArrayElementNode : boolean (readonly)This flag can be used for type testing.
.storageBufferNode : StorageBufferNodeThe storage buffer node.

Key Takeaways

  1. StorageArrayElementNode extends: EventDispatcher → Node → ArrayElementNode
  2. Most relevant properties: isStorageArrayElementNode, storageBufferNode.

Connects To