Page 1 of 1

[SOLVED] Custom shader Drag & Drop, won't apply to objects.

PostPosted: Thu Jan 31, 2019 12:38 pm
by cepeka
Hello,

My material with custom shader won't apply to objects when dragging, but apply to the skybox.
Red is Standard Shader, Yellow is Amplify custom Shader

Image

I can drag materials to the deserved slots of the Mesh Renderer, this works fine, but I have a lot of materials IDs on my models, so it is very tedious to do. Also, since i'm working on a pack that will be sold on the Asset Store, I definitively can't let this through.

I have asked on Unity forums, Unity answers, Reddit, no responses.
Is there any reason or solution to this ? I can't seems to find notable differences between a skybox and a surface shader.

Re: Custom shader Drag & Drop, won't apply to objects.

PostPosted: Thu Jan 31, 2019 3:22 pm
by Amplify_Borba
Hello, thank you for getting in touch and for your support!

That's an odd issue, I don't believe that we've come across it yet.

In order for us to try and replicate it on our side, we'll need a few additional details such as Unity version, OS, target platform and ASE version. I would also recommend that you make sure that you're using the latest ASE version currently available on our website.

If possible, please share a simple sample with us with the issue present, so that we can debug this using the same data as you.

Regarding our support, we recommend that you always reach out through one of the following means:

- Email: [email protected]
- This forum
- The ASE Unity thread

Re: Custom shader Drag & Drop, won't apply to objects.

PostPosted: Fri Feb 01, 2019 11:53 pm
by cepeka
Hi, thanks for the reply !

I've uploaded a light project for debug purposes :
https://we.tl/t-i4FhjhF9vI

I'm using Unity 2018.3.0f2 on Windows 10, target platform is Win/Mac.
ASE is updated to the latest version (1.6.2)

The weird thing is, it started to work again on a different project right after asking on various forums, and I don't know why. I didn't do anything special (even rebooting, the project was open all the time.)

If I switch the shaders from one project to another, it doesn't do anything. Still broken. When someone tried the shader, it worked fine on his side.

Re: Custom shader Drag & Drop, won't apply to objects.

PostPosted: Wed Feb 06, 2019 11:25 am
by Amplify_Borba
Thank you for sharing a sample, together with additional details!

From what I could see, your ASE shader has its Render Queue set to Background, which is causing this behavior.

It also seems to be expected, since using this setting in a Unity Standard shader effectively replicates it.

Setting the Render Queue to Geometry on the shader, which is the default, will ensure that the material will apply and behave as you'd expect.

Please let me know if this helps.

Re: [SOLVED] Custom shader Drag & Drop, won't apply to objec

PostPosted: Fri Feb 08, 2019 9:07 pm
by cepeka
Ahaaa ! It was simple as that...
Many thanks to you sir ! Everything works as intended now.

Re: [SOLVED] Custom shader Drag & Drop, won't apply to objec

PostPosted: Thu Feb 14, 2019 11:28 am
by Amplify_Borba
Happy to help!

Have you had the chance to rate and review Amplify Shader Editor? It would be awesome if you could share your experience with the Unity community, every bit helps and your feedback is extremely valuable to us.

Feel free to get back in touch if you have further issues or questions, thanks!