- Home /
Question by
Johannski · May 02, 2016 at 08:17 AM ·
shadermaterialpropertyblockdrawerglobal variables
Access global MaterialProperty through script
I'm working on a custom material property drawer, in which I want to create an interface to change global material properties. There is this great function Shader.SetGlobalTexture() which works really well, but sadly the counterpart Shader.GetGlobalTexture() is missing.
What is the proper way to access a global texture (or color or float) through a MaterialPropertyDrawer?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612080005im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Custom MaterialPropertyDrawer with argument 2 Answers
How to use Material Property Blocks in Sprite Renderer and Custom Editor Scripts? 0 Answers
Why SetFloat method seems not to affect the value within a Material Property Block? 2 Answers
How can I declare instanced properties in ShaderGraph? 0 Answers
Changing Shaders HDR Color results in different Color. 1 Answer