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 flag a slice as dynamic
- Right-click the
.slicefile and choose 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.
Copyright © 2022 Open 3D Engine Contributors
Documentation Distributed under CC BY 4.0.
The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Policy page.