LogicBlock 2

Examples

Four example scenes that show Run Block, parameters, Check Block and LogicBlock lists.

Examples

Import them from the Package Manager (see Installation). Each scene has a note at the bottom explaining what to do. Open a scene and press Play. The Blocks are in the Blocks folder; select one to see its parameters and lists.

SceneShows
1 Run BlockThree cubes share one Instruction Block, Pop. Clicking any cube runs Pop on that cube. Change Pop once and every cube changes.
2 ParametersThe Set Lamp Block has Color and Intensity parameters. The left cube changes only the Color, the right cube changes Color and Intensity, and the middle cube changes nothing, so it uses the Block's defaults.
3 Check BlockThe left cube switches a lamp on and off. The right cube only pops while the lamp is on. Both ask the Condition Block Is Lamp On inside an If.
4 LogicBlock ListsOne LogicBlock, Lamp Show, holds Red, Blue, Pulse and Reset lists. The right cube uses Is Block Running to start Pulse, or to stop it with Stop Block and run Reset.

The examples use the Universal Render Pipeline material, like Visual Script's own samples.