- Home /
radar animation
Hello
I have a radar script in my game. it's work fine but my problem is i like to make an animation of my radar. A rotate line like a scan around the cicle. because make a simple texture file are not good like this one
so i made an animation of radar with aftereffect, export it as mov file. but i don't know how to import it ti unity, place my texture file with it and make it run with the game. this is where i var to place my texture or change it.
Answer by Eric5h5 · Aug 15, 2010 at 06:19 PM
Using a movie texture would be a big waste of resources for something so simple; looks like you could just use a static texture and rotate it.
Answer by Julian-Glenn · Aug 15, 2010 at 05:17 PM
Movie Texture is what you need:
http://unity3d.com/support/documentation/Manual/Video%20Files.html
Pro Only
$$anonymous$$ovie Texture would make game run in 30 fps.
Answer by Yanger_xy · Mar 27, 2011 at 07:43 AM
maybe you can use the Material.mainTextureOffset, which can animate something like water.and there is demo as you install Unity. here is the offical document link text
Oh, i am sorry. Here is the official document says:
// Scroll main texture based on time
var scrollSpeed : float = 0.5;
function Update() { var offset : float = Time.time * scrollSpeed; renderer.material.mainTextureOffset = Vector2 (offset, 0); }
GOOD luck
Your answer
Follow this Question
Related Questions
Radar script modification, translate x y when camera spins. 1 Answer
set value to a component 1 Answer
how to put a border around a camera 1 Answer
Instantiating game object 1 Answer