title: Dynamically change property of Shader
body: <p>I have a shader on a gameObject in Unity, Lets call it FooShader. In FooShader there is a public property called <code>_fooVal</code> I want to update in real time.</p>
  
  <p>I've created a blank C# script on the same gameObject.
  My first problem is how do I reference this <code>FooShader</code> shader? And then once I have a correct reference change its <code>_fooVal</code> property?</p>
  
  <p>I've tried using the following to get a reference to the Shader but it doesn't work.</p>
  
  <pre><code>gameObject.material._fooVal
  </code></pre>