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.
  2. Dismiss Notice

Feature Request Round Buttons

Discussion in 'UI Toolkit' started by alf3trillion, Jun 29, 2023.

  1. alf3trillion

    alf3trillion

    Joined:
    Sep 11, 2022
    Posts:
    6
    Currently, there is no way to make buttons round with unity UI tool kit, obviously, this is needed as round buttons exist.
     
    shaiou likes this.
  2. Hellfim

    Hellfim

    Joined:
    Sep 11, 2014
    Posts:
    91
    There is border-radius property which will help you with round buttons
     
  3. alf3trillion

    alf3trillion

    Joined:
    Sep 11, 2022
    Posts:
    6
    Round the hitboxes for the buttons not the image for the button.
     
  4. wechat_os_Qy0xAW5CLpjNWoJt4vqTf7TxA

    wechat_os_Qy0xAW5CLpjNWoJt4vqTf7TxA

    Joined:
    Jul 11, 2023
    Posts:
    1
    You can try to customize a Button control by overriding the virtual method ContainsPoint() in the VisualElement class to change the scope of the custom control.