Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

A slider in the shape of an arbitrary curve

Discussion in 'Immediate Mode GUI (IMGUI)' started by tgamerkle, May 10, 2022.

  1. tgamerkle

    tgamerkle

    Joined:
    Jul 18, 2020
    Posts:
    2
    Hi everyone!

    I'm fairly sure this isn't possible without a lot of custom code, but I would appreciate some guidance.

    What I actually need is: a line in the UI that gets drawn over a period of time, preferably with a cubic bezier or something - but the specific animation is not relevant. The purpose of this is to appear like a glyph being drawn in ink.

    I think Slider MIGHT be riggable in this way. If not, it will be custom I think.

    How would you do this?