Search Unity

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

Question Alpa Hit Minimum Threshold not working

Discussion in '2D' started by Gitoss123, Nov 14, 2023.

  1. Gitoss123

    Gitoss123

    Joined:
    Dec 30, 2021
    Posts:
    1
    Hello, I'm working on a strategy game and I encountered a problem, I'm using alpha hit minimum threshold which doesn't work. The main thing is that despite good settings (full rect, read/write), it ignores not only the transparency but also a large part of the sprite, you can only click in the very center, but if the sprite is very small, the click does not work at all, can anyone help me? help?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,276
    Not sure what an "alpha hit minimum threshold" is or what API you're even talking about.

    Perhaps if you use this guideline someone here can help.


    How to report your problem productively in the Unity3D forums:

    http://plbm.com/?p=220

    This is the bare minimum of information to report:

    - what you want
    - what you tried
    - what you expected to happen
    - what actually happened, log output, variable values, and especially any errors you see
    - links to documentation you used to cross-check your work (CRITICAL!!!)

    The purpose of YOU providing links is to make our job easier, while simultaneously showing us that you actually put effort into the process. If you haven't put effort into finding the documentation, why should we bother putting effort into replying?



    If you post a code snippet, ALWAYS USE CODE TAGS:

    How to use code tags: https://forum.unity.com/threads/using-code-tags-properly.143875/

    - Do not TALK about code without posting it.
    - Do NOT post unformatted code.
    - Do NOT retype code. Use copy/paste properly using code tags.
    - Do NOT post screenshots of code.
    - Do NOT post photographs of code.
    - Do NOT attach entire scripts to your post.
    - ONLY post the relevant code, and then refer to it in your discussion.
     
  3. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,105
    I don’t understand either and how it’s related to 2D physics.

    Maybe it related to the UI raycasters?? If so, that’s nothing to do with 2D.
     
    Kurt-Dekker likes this.