User Guide (Version 1.13)

Flagging Dynamic Slices

A slice flagged as a dynamic slice can be used like any other slice, but it can also be instantiated at runtime.

You can flag a slice as dynamic in the Asset Browser. To do this, right-click on the .slice file in the Asset Browser and click Set Dynamic Slice.

To instantiate a UI slice at runtime, use the UiSpawner component on a UI element. This causes the system to automatically spawn a dynamic slice on activation. It also exposes a bus to Lua and C++ that allows the slice to be instantiated whenever needed.