References
Reference values are dynamic. The instruction that runs a list sets them at runtime, so they are not saved directly in the Block asset.
References let one list work in different situations without editing the list itself. This keeps your logic modular and reusable.
Add a Reference
- Open a list inside a Block.
- Click Add Reference.
- Set a name and choose a type, such as GameObject, Number, or Boolean.
- Click Create.
The reference appears below the list. Click it to expand it. Use the Delete button in the expanded view to remove it.
Use a Reference in an Instruction
For example, to set a GameObject active with a dynamic value:
- Add a GameObject reference to the list.
- Add a Set Active instruction.
- In the instruction's GameObject field, choose LogicBlock > Block GameObject Reference.
- Choose the Block, List, and Reference.
When there is only one reference of that type, LogicBlock selects it automatically. When there are several, choose the one you need from the field.
Items use Block Item Reference. Stats use Block Stat Reference. Compatible instructions expose selectors for Boolean, Number, String, and other supported types.