mob-sakai / SoftMaskForUGUI

Enhance Unity UI (uGUI) with advanced soft-masking features to create more visually appealing effects!
https://github.com/mob-sakai/SoftMaskForUGUI
MIT License
1.97k stars 261 forks source link

Use the stencil buffer outside the scene view canvas for editing #100

Closed 32678 closed 3 years ago

32678 commented 3 years ago

NOTE: Your issue may already be reported! Please search on the issue tracker before creating one.

Describe what help do you need A description of the question. Hello, I have a problem about showing masked image.

Before explain, I write about mask hierarchy [Canvas] - [ScreenSpace - Camera] -[GameObject1] -[GameObject2] -[GameObject3] -[MaskImage] -> I gave softmask component here -[MaskedImage] -> I gave softmaskable component

I completed soft mask setting, but [MaskedImage] didn't show on view. I could see only [MaskImage] on the view.

And I tried to find resolution. I changed variety relevant settings and checked It's result. finally, I found several hints about this problem.

-[MaskedImage] was shown within some boundary. -And boundary was canvas resolution size.

And now I have a question. -Can I make the [MaskedImage] visible outside the canvas resolution size area? (Because of rules, resolution size cannot be changed)

*There may be weird sentences using the translator, I would be grateful if you could understand my situation.

Additional context Add any other context or screenshots about the question here. 01 -[MaskedImage] showing just in that boundary.

02 -This is [MaskImage} setting.

03 -This is [MaskedImage} setting.

mob-sakai commented 3 years ago

@32678 Are you talking about the scene view, not the game view? That's a spec, but you find it inconvenient when editing in scene view, right?

32678 commented 3 years ago

@32678 Are you talking about the scene view, not the game view? -> Yes, I'm talking about the scene view. Actually, I can't check if it's visible outside of the resolution in the game view. Our project is a way to illuminate the screen while moving the camera on a long horizontal screen. If this doesn't seem to work, does it actually appear in the developed app?

That's a spec, but you find it inconvenient when editing in scene view, right? -> Yes, Is this an unavoidable part according to the specifications?

mob-sakai commented 3 years ago

OK. I will fix it later.

[WIP] The stencil buffer will be used outside the scene view canvas.

github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version 1.0.0-preview.8 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

WintorJesseVanBloemenhuis commented 2 years ago

Ran into the same issue and it doesn't seem to work in v1.0.2 in Unity 2020.3.

image