About 12,500,000 results
Open links in new tab
  1. Is there a way to change the mouse detection of a button? - Unity ...

    Nov 8, 2016 · I’ve noticed that in my experimentation with doing my own custom button images that the UI button automatically assigns some sort of collider box type detection on your sprite swaps and in my case for the highlighted sprite I have done …

  2. Unity custom button trigger area - Stack Overflow

    May 27, 2018 · I want to set custom OnClick trigger area for my button which icon is a child of Button object: However, the button triggers OnClick only when clicking on it's child Image (ButtonIcon on the image above) ignoring the actual width and height of the button itself.

    Missing:

    • Button Detection Range
  3. how to change the clicking area of a button? - Unity Engine - Unity

    Aug 11, 2022 · I found a solution on stackoverflow, for anybody having this problem just slap this basic script on your button for the sprite only being clickable. void OnGUI() GetComponent<Image>().alphaHitTestMinimumThreshold = .5f;

  4. [Solved] How to detect double tap on ui button and change

    Jan 7, 2015 · Is it possible to detect double click as with guitexture ( input.GetTouch(i).tapcount==2 ) ? Thank you in advance.

  5. Unity Buttons: non-rectangular shape - Stack Overflow

    Jul 27, 2020 · If you go to your Canvas Game Object | Canvas Scaler Component / Reference Pixels Per Unit and increase the value, the button will be more rounded, if you decrease the value the button will be more rectangular.

  6. Unity UI Button State Transition through code - Stack Overflow

    Apr 10, 2017 · You can use Button.interactable to change Button states. Disable: BtnToChange.interactable = false; Enable: BtnToChange.interactable = true;

    Missing:

    • Button Detection Range
  7. how do I fix this button issue? detects click zone out of its ... - Reddit

    Jul 2, 2022 · Seems like local positions of the buttons are up left (starting at x0 y0). Check if this is true for Button 1 by looking at its transform position. I think this is your issue.

  8. Can you change enemy attack range in FPS Microgame : r/Unity3D - Reddit

    Jan 9, 2021 · Was playing the FPS Microgame, and I saw you can cheese the enemies by shooting them from faraway. If you can change this range can you let me know, and how to do that. (optional) you and i showcase our projects by little videos!

  9. gui - Can a Unity button detect a tap AND send that tap through …

    Aug 7, 2019 · We can do this while maintaining the highlight's self-containment, by giving it a script like this: // Point this at the button that you want to highlight & react to. public Button targetButton; // Optionally, you can use an event to fire the next beat in the tutorial sequence. public UnityEvent onHighlightDismissed; void OnEnable() {

  10. Unity C#: change what a button does via a script - Stack Overflow

    According to the documentation, you can use button.onClick.AddListener(function);. The other functions (like removing one or more functions already associated with the button) are listed here.

    Missing:

    • Button Detection Range
  11. Some results have been removed
Refresh