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

[RELEASED] All In 1 Sprite Shader

Discussion in 'Assets and Asset Store' started by GeriB, Nov 12, 2019.

  1. AustinDrozin

    AustinDrozin

    Joined:
    Jun 8, 2016
    Posts:
    33
    got it thanks! is there anyway to make the shader like 'screen space' or something? so it would ONLY work for things like sliced images. just curious.
     
  2. GeriB

    GeriB

    Joined:
    Apr 26, 2017
    Posts:
    189
    `There's no screen space anything since it's tricky to decide what users will want to screens pace, like, will they want the main texture to be screen space? Maybe just a particular effect? Which effect? Also there's render pipeline differences on the implementation.
    So no screen space out of the box implementation. But it's easy to add.

    I still wouldn't do it on your case though. I would approach it as I told you a couple messages back
     
    AustinDrozin likes this.
  3. AustinDrozin

    AustinDrozin

    Joined:
    Jun 8, 2016
    Posts:
    33
    Am I able to use this shader with UI masks? Just have a UI Image that has this shader and need it to be masked by another UI image. I get the warning that it doesn't have "_Stencil".

    I'm aware there is a UIMask Shader, but that seems like it can only be used with SpriteRenderers?
     
    Last edited: Aug 9, 2023
  4. GeriB

    GeriB

    Joined:
    Apr 26, 2017
    Posts:
    189
    UIMask Shader can be used literally anywhere and the only difference is the Stencil config
     
  5. AustinDrozin

    AustinDrozin

    Joined:
    Jun 8, 2016
    Posts:
    33
    So I guess how am I supposed to use it without getting the stencil error? do I need to add something to the shader code?
     
  6. GeriB

    GeriB

    Joined:
    Apr 26, 2017
    Posts:
    189
    I don't understand. What error? I don't know about any error
    Can you contact me through the support email and give me all the details? Screenshots help too.
    Forums are the worst communication channel for this sort of thing.
    seasidegamestudios@gmail.com
     
    Last edited: Aug 10, 2023
  7. AustinDrozin

    AustinDrozin

    Joined:
    Jun 8, 2016
    Posts:
    33
    yeah of course. sorry I don't often get replies over support emails so didn't think to use it. will email now.
     
  8. BarrierX

    BarrierX

    Joined:
    Dec 7, 2013
    Posts:
    2
    Have you solved this issue?
    I would also like to use it with canvas mask and get the "doesn't have _Stencil property"
     
  9. GeriB

    GeriB

    Joined:
    Apr 26, 2017
    Posts:
    189
    Hello, please read the UI Masking section of the Documentation. The asset has always had a shader variant for that
     
  10. jacklynkollie

    jacklynkollie

    Joined:
    Feb 23, 2022
    Posts:
    2
    Hi, does this asset work with tilesheets, working with it and trying to distort my asset, it deforms and shows other assets in the row near the sprite I'm trying to use. As you see the outline around my ring is scuffed once I turn on outline uses distortion.
     

    Attached Files:

  11. GeriB

    GeriB

    Joined:
    Apr 26, 2017
    Posts:
    189
    Kind of. Using the Sprite Atlas feature may help, depending on the use case. But in any case you'll need to make sure to have some transparent margins around the sprite. Read Texture Setup in the Documentation for more info about the matter.