This happens when I set the Slider Variable Mode to Fetch.
Undeclared identifier when using Fetch on Slider
Undeclared identifier when using Fetch on Slider
Shader error in 'MyShaders/ObjectLit': undeclared identifier '_Angryness' at line 32 (on d3d11)
This happens when I set the Slider Variable Mode to Fetch.

This happens when I set the Slider Variable Mode to Fetch.
Re: Undeclared identifier when using Fetch on Slider
Sorry, wrong image url.


- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: Undeclared identifier when using Fetch on Slider
Hello, thank you for getting in touch and for your support!
Setting the 'Variable Mode' to 'Fetch' won't declare it over the shader, meaning that it has to be declared over an included cginc, for example, so the error is being thrown since the shader can't find any reference to that property name.
If you want the property to be created on the shader, you need to set this parameter to 'Create'.
Please let me know if this helps and if you have any further questions.
Setting the 'Variable Mode' to 'Fetch' won't declare it over the shader, meaning that it has to be declared over an included cginc, for example, so the error is being thrown since the shader can't find any reference to that property name.
If you want the property to be created on the shader, you need to set this parameter to 'Create'.
Please let me know if this helps and if you have any further questions.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Re: Undeclared identifier when using Fetch on Slider
Thanks, I got it to work!
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: Undeclared identifier when using Fetch on Slider
Happy to help, don't hesitate to get back in touch if you have any further questions, thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!