Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

logic help

$
0
0
Hi, I've knackered my brains... need a tuna sandwich, anyhew, see the code below, It simple fades the alpha of a quad on update for a set time then repeats, it's a pulse fade effect from zero to one, but what should I create to make it pulse the other direction from 1 to zero in the update, I like the pulse effect but a more subtle effect is needed

Code (csharp):
  1.         public GameObject Background;
  2.         private Material Background_Mat;
  3.         private float timer = 2.0f;
  4.    
  5.         void Start ()
  6.         {
  7.                 if (Background !=...
logic help

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>