質問

I want to make a circular progress-bar for my video game in UnityScript. How can I achieve that by using a 3d model/texture for it? I haven't written any code yet and this is just a question on how to do something like this in plain UnityScript.

役に立ちましたか?

解決

You can use an alpha gradient texture that is then used as a cutoff for your progress bar image.

Note that you'll need to use shaders for this to work and set the _cutoff variable for this by hand.

Another approach would be to use the NGUI plugin and use an UISprite with radial fill, that's gonna do the same thing but without the need to modify the shader params by hand. On the down side the NGUI plugin is not free.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top