Search Unity

How do i change the clickable/hover area of the button without changing the source image size?

Discussion in 'UI Toolkit' started by hishamhazem1234, Sep 26, 2021.

  1. hishamhazem1234

    hishamhazem1234

    Joined:
    Sep 23, 2021
    Posts:
    1
    im trying to make my button hover/click area smaller but my source image also needs to look bigger

    but if i tried to resize the button area my image will look very small and weird looking


    thank you
     
  2. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    811
    Can you just put the image as a child of the button?
     
    Last edited: Sep 26, 2021
  3. NocturnalWisp

    NocturnalWisp

    Joined:
    Oct 2, 2019
    Posts:
    62
  4. manuelgoellnitz

    manuelgoellnitz

    Joined:
    Feb 15, 2017
    Posts:
    397
    I think that only works in the old UI system
     
  5. NocturnalWisp

    NocturnalWisp

    Joined:
    Oct 2, 2019
    Posts:
    62
    Ah didn't realize where this thread was, thank you for catching that.
     
  6. NocturnalWisp

    NocturnalWisp

    Joined:
    Oct 2, 2019
    Posts:
    62