Search Unity

Making Cartoon Speech Bubbles?

Discussion in 'Scripting' started by dansav, Feb 26, 2010.

  1. dansav

    dansav

    Joined:
    Sep 22, 2005
    Posts:
    510
    Is there any easy way to do this in Unity3D. The GUI cannot do a bubble shape. Can I make a textarea transparent and then position it so it looks like it's against a white cartoon speech bubble? Is there some clever way to do this so that the bubble does not obscure the scene? The GUI textarea will cover everything right?

    Ideally I'd like a 3D object that I can write text into.
    Thanks,

    Dan
     
  2. lankoski

    lankoski

    Joined:
    Apr 20, 2008
    Posts:
    148
    You can make GUI elements look like speech bubble. It is easy to use them, but they show on the top of everything. You can also attach speech bubble background texture to an object (make it camera facing billboard http://www.unifycommunity.com/wiki/index.php?title=CameraFacingBillboard ) and add text TextMesh.

    (our Lies and Seductions uses speech bubbles and source can be downloaded at
    http://mlab.taik.fi/~plankosk/blog/?p=308, look at Assets/Dialogue/Speech Balloons.)
     
  3. dansav

    dansav

    Joined:
    Sep 22, 2005
    Posts:
    510
    How do you make a textMesh more than one line?
    Dan
     
  4. lankoski

    lankoski

    Joined:
    Apr 20, 2008
    Posts:
    148
    Add newline ("\n").
     
  5. dansav

    dansav

    Joined:
    Sep 22, 2005
    Posts:
    510
    /n newline works in a script but does not work in the
    inspector. I found that by looking at some other posts o the forum.

    Thanks for the solution.

    Dan