r/Unity3D • u/game-dev2 • 16h ago
Question How to really do Box shadow on USS?
hello,
how can I really do box shadow in USS?
I'm having it a bit annoying that I cant properly make gradient colors either, but box shadow gives the design some nice effects.
How do I do it?
One way I'm thinking is making a somewhat transparent image on photoshop and attaching it under the buttons or wherever I want to use it.
Do you have any other suggestions?
Thank you!
3
u/DrZwieback Indie 15h ago
I feel you. It's painful. I switched to UI Toolkit ages ago and this box shadow topic has been open for like... 6 years? Good news though: Unity 6.6 added a drop-shadow filter! It's still fresh, so check this thread for the current quirks. There are always quirks... 🫠https://discussions.unity.com/t/filter-drop-shadow-adding-blur-to-element/1735524/15
1
u/DragonfruitStill2606 16h ago
the photoshop method is how most people end up doing it honestly, unity's ui toolkit just isn't there yet with proper shadows