Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

Animated texture for projector?

$
0
0
I found this one in another Thread but it does not work in unity iphone.

Code (csharp):
  1. var newTexture : Texture;
  2.  
  3. function Start ()
  4. {
  5.    SwapTexture (newTexture);
  6. }
  7.  
  8. function SwapTexture (swap : Texture)
  9. {
  10.    var projector = GetComponent (Projector);
  11.    projector.material.SetTexture ("_ShadowTex", swap);
  12. }
Any idea how to make a animated projection on the iphone?

Viewing all articles
Browse latest Browse all 10823

Trending Articles



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