Unity Products:Amplify Shader Editor/Global Array
Global Array Node
The Global Array node creates and accesses a global array. Array's type, size and name can be configured via its Type, Array Length and Name respective options.
| Node Parameter | Description | Default Value |
|---|---|---|
| Mode | Defines if the current creates the array or reference an already created array over other node.
|
Object |
| Reference | Global Array node which creates the global array we want to use. | <None> |
| Name | Name of the global array to be created/accessed. | MyGlobalArray |
| Auto-Register | If toggled on, creates the property and/or global variable even if not connected to an Output node | Off |
| Is Jagged | If toggled on, creates a multi-dimensional array/array of arrays. | Off |
| Index | Position on the array to be accessed. Only visible if the respective input port is not connected. | 0 |
| ArrayLength | Length of the array to be created. Only visible if the respective input port is not connected. | 1 |
| Index X | Position on the first index to be accessed, only shown on jagged array. Only visible if the respective input port is not connected. | 0 |
| Index Y | Position on the second index to be accessed, only shown on jagged array. Only visible if the respective input port is not connected. | 0 |
| Array Length X | Length, dimension of the first array to be created, only shown on jagged array. Only visible if the respective input port is not connected. | 1 |
| Array Length Y | Length, dimension of the second array (array of the array) to be created, only shown on jagged array. Only visible if the respective input port is not connected. | 1 |
| Type | Type of data the array will contain.
|
Float |
| Range Check | if toggled on, adds additional clamp instruction to prevent out of bounds access to the array. | False |
| Input Port | Description | Type |
|---|---|---|
| Index | Position on the array to be accessed. | Int |
| Array Length | Length of the array to be created. | Int |
| Index X | Position on the first index to be accessed, only shown on jagged array. | Int |
| Index Y | Position on the second index to be accessed, only shown on jagged array. | Int |
| Array Length X | Length, dimension of the first array to be created, only shown on jagged array. | Int |
| Array Length Y | Length, dimension of the second array (array of the array) to be created, only shown on jagged array. | Int |