Search Unity

Swapping out the renderer

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

  1. caladluin

    caladluin

    Joined:
    Jan 29, 2014
    Posts:
    25
    Hello,

    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?

    Thanks!

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