Loops in Level Design

  1. Create Blueprint ProceduralWall

  2. Drag Pillar_50x500 from Content Browser/StarterContent/Architecture to new Blueprint

  3. Create a new variable

  1. Name it EndPoint

  2. Variable Type = Vector

  3. check Instance Editable

  4. Tooltip = This is the end of the wall!

  5. check Show 3D Widget

../../_images/endpoint_variable.png
  1. Drag EndPoint to Construction Script. Create a getter.

  2. Drag EndPoint slot out and create Not Equal (Vector) by typing in !

../../_images/endpoint_not_eq.png
  1. create Branch from Not Equal (Vector)

  2. Connect Construction Script to Branch

  3. Create a vector multiply in between End Point and Not Equal (search with *)

etc, etc… See example.

Example

Summary

../../_images/level_design_loop_example_summary.PNG

Run Loop

../../_images/level_design_loop_example_run_loop.PNG

Wall Meshes

../../_images/level_design_loop_example_wall_meshes.PNG

Rotate Wall

../../_images/level_design_loop_example_wall_rotate.PNG