Пример #1
0
 /// <summary>
 /// Sets the transparency of the dynamic mesh.
 /// </summary>
 /// <param name="alpha">Alpha (0.0 to 1.0)</param>
 public void SetMeshTransparency(float alpha)
 {
     alphaAmountText.text = alpha.ToString("0.00");         //http://stackoverflow.com/a/6356381/5143682
     DynamicMeshController.SetShaderAlpha(alpha);
 }
Пример #2
0
 void Start()
 {
     _instance = this;         //set our static reference to our newly initialized instance
     SetShaderAlpha(0.75f);
 }