Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Swapping out the renderer

Discussion in 'UI Toolkit' started by caladluin, Aug 11, 2020.

  1. caladluin


    Jan 29, 2014

    I'm have a project where I need to be able to handle flexbox-like layouts as part of a map generation process. While I could do that outside of unity, ideally I'd prefer to be able to utilize custom UXML & USS based components, have UIToolkit generate the layout, and then take the final layout tree + style blocks and render them myself. Is there any way to do such a thing with UIToolkit?


    EDIT: Never mind - turns out all I need is the OnGeometryChanged event.
    Last edited: Aug 11, 2020
    uDamian likes this.