Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Inflate a text like a balloon

Discussion in 'UGUI & TextMesh Pro' started by MaximeGL, Sep 12, 2016.

  1. MaximeGL

    MaximeGL

    Joined:
    Apr 22, 2016
    Posts:
    13
    Hello all,

    I would like inflate my score like a balloon.
    Increase the scale property doesn't give me the effect.

    I don't know if make a text mesh and modify vertices via script is the good solution? I'm not used to modify vertices.
     
  2. IzzySoft

    IzzySoft

    Joined:
    Feb 11, 2013
    Posts:
    376
    Are you trying to make your own 3D Mesh numbers? and use Morph targets to inflate and Deflate them?
     
  3. MaximeGL

    MaximeGL

    Joined:
    Apr 22, 2016
    Posts:
    13
    I need to change my text dynamically and proportionally inflate/deflate it.
    If I use a 3D Mesh I think I can't change my text
     
  4. MaximeGL

    MaximeGL

    Joined:
    Apr 22, 2016
    Posts:
    13
    Or is there a way to increase the size of some letters?

    If I increase the size of letters in middle I will have an inflating effect in 2D
     
  5. TheValar

    TheValar

    Joined:
    Nov 12, 2012
    Posts:
    760
    You may be able to use this as a starting point to get what you want https://github.com/badawe/Text-Juicer but I'm not totally clear on what your trying to achieve. Any examples from other games?
     
  6. Stephan-B

    Stephan-B

    Unity Technologies

    Joined:
    Feb 23, 2011
    Posts:
    2,269
    Are you looking for something like this?



    This is done using TextMesh Pro where you can dynamically modify material properties where in this case I simply Dilated the text.

    Here is an image of the material properties / Material Preset that was used in this example.

     
    TheValar likes this.