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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Cut TMP out of Image

Discussion in 'UGUI & TextMesh Pro' started by torbendischer, Jul 2, 2022.

  1. torbendischer

    torbendischer

    Joined:
    Jul 2, 2022
    Posts:
    3
    I am trying to cut a TMP component out of an UI Image, to make the stuff behind that visible. I already got a custom Masking script for cutting images out of other images, so if you have an idea how to cast an TMP component to an image while runtime, that would also be great.
    This is my first time posting, and i am sorry if this post is in the wrong section.
     
  2. iMobCoding

    iMobCoding

    Joined:
    Feb 13, 2017
    Posts:
    161
    torbendischer likes this.
  3. torbendischer

    torbendischer

    Joined:
    Jul 2, 2022
    Posts:
    3
  4. iMobCoding

    iMobCoding

    Joined:
    Feb 13, 2017
    Posts:
    161
    You mean you can't install it as a package?

    If so, why don't you try downloading it directly from the git and placing it manually in your assets? You only need the Scripts folder and eventually Samples (talking about the unmask plugin).
     
  5. torbendischer

    torbendischer

    Joined:
    Jul 2, 2022
    Posts:
    3
    I eventually got it installed but not to work correctly with TMP. I got a workaround by masking a normal text with the soft mask and then added a custom spacing script to imitate the functionality of TMP.
    It actually states, it would work with it, but i only got it to show an orange outline of the text.