• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Sergasteam · Feb 26, 2013 at 10:22 AM · transparentmoviecutoutprogressword

Fill of each letter of the word, like progress bar.

Hello everyone,please help me make fill of each letter in word like DMC game when display A,B,SS letters and filling it? http://www.youtube.com/watch?v=fTSHvUHpnC8&t=2m55s from 2.56 to 3.06 sec.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Tarlius · Feb 26, 2013 at 11:07 AM

Edit:
Actually, EZGUI has a UIProgressBar control you could hack a little to get the effect much more easily! Give that a look if using EZGUI. NGUI probably has a similar control. idk why I didn't think of that first; I'm even doing something like that in my game >.>;; /Edit

As far as I am aware, there is no built in functionality for this. However, there might be an addon on the asset store.

If not, you will probably be able to fake the effect by using ui tookit like EZGUI or NGUI, and exporting loads of frames for each size of letter, setting it up an animation of some kind. For EZGUI you could use PackedSprite, then telling the sprite which frame to show. Note that this way will be very heavy on texture memory (probably around 20-30x the next method).

Doing it properly, however, will be pretty difficult/time consuming. You'll need build and resize a mesh in code (ui library might do this for you), then manage uvs based on a font file (probably BMFont) you'll have to parse to get the raw uv for the letter, then tween according to a percentage and letter you'll set via a script.

Another way might be to directly edit the textures, copying what you need onto a buffer that you display, which will require creating textures in code. Since you won't have to worry about resizing the mesh, this might be easier to implement. Not sure which would be faster though ^^;;

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sergasteam · Feb 26, 2013 at 11:39 AM 0
Share

can you show me simple example with unitypackage?

avatar image Tarlius · Feb 26, 2013 at 11:48 AM 0
Share

I don't really have time to write something that would do it all, and I can't send EZGUI files due to copyright reasons.

If you're really up for building the mesh/etc, this should get you started

If you want to do the texture route, this and this (or their 32bit equivalents)

avatar image Sergasteam · Feb 26, 2013 at 02:43 PM 0
Share

can you show me simple example with unitypackage?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Load transparent movietexture 0 Answers

Transparent Cutout Shader - max transparency distance? 1 Answer

Transparent cutout SSAO problem 1 Answer

Crash: cutout shaders on mobile 1 Answer

please how can i add cutout or fade to this shader 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges