I'm creating a new Material through code in an Editor Window. The material uses the Spine/Sprite/Unlit shader, and I want to enable "Write to Depth".
I am doing this:
spineMaterial.SetFloat("_ZWrite", 1.0f);
Seems to be working great, just wanted to double check that setting it to 1 is the correct value for enabling it? Looked like it was checking for a 0 or a 1 value.
Thanks! :grinteeth: