This workshop follows the Presentation UI Guide
Files
Presentation UI Workshop (Before).zip
Presentation UI Workshop.zip
Links
Workshop Summary
1. What is Presentation Layer & why should you use it
- Presentation Layer is a separate scripting layer from the simulation that runs at render update speed, rather than simulation update speed
- This means you can create complex, smooth UI animations with using the DCEI.Animation APIs to achieve UI effects not otherwise possible
- It also enforces good coding practices by separating simulation logic from presentation logic
2. How do you use Presentation Layer
- Presentation Layer scripts are accessed through
Assets/Scripts/Presentation.lua.txt
, similar to how Simulation Layer scripts are accessed through Trigger.lua.txt
- Libraries have separate entry points for simulation and presentation—use the
:Presentation
annotation when using libraries in presentation or the :Shared
annotation when using libraries in scripts that can run in either layer
3. Creating a simple Presentation Layer layout
- Layouts should be added to the UI hierarchy as their own script files in
Presentation.lua.txt
. This goes a lot faster using the layout module snippets [0]