Question by 
               Boggs · Oct 21, 2015 at 04:08 PM · 
                scripting problemshader  
              
 
              Assets/Scripts/Transparent.cs(11,51): error CS1955: The member `UnityEngine.Material.shader' cannot be used as method or delegate
Hi, I'm trying to create a simple script that gets a material shader and change transparency value from 0 to 1 using slider or scrollbar. Thanks for the help.
using UnityEngine; using System.Collections; public class Transparent : MonoBehaviour %|-38370388_1|% %|1497485841_2|% %|-1903114618_3|% %|-1519240400_4|% %|1381386175_5|% %|394263736_6|% %|1324923714_7|% }
               Comment
              
 
               
               using UnityEngine;
 using System.Collections;
 
 public class Transparent : $$anonymous$$onoBehaviour 
 {    
     public GameObject Rack;
     private int transparency;
 
     public void TransparentVS(string Opacity) 
     {
         GetComponent<Renderer>().material.shader(transparency = 0, 1);    
     }
 }
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                