Text Multi - Color, Size, Font Style Unity Tutorial! + Custom Colors!

Поділитися
Вставка
  • Опубліковано 31 лип 2024
  • Learn how to customize your text and specific parts of your text with colors, custom colors, font sizes and font styles! with Unity!

КОМЕНТАРІ • 22

  • @michaelesposito2336
    @michaelesposito2336 2 роки тому +1

    The world goes round because of videos like these. Thank you!

  • @boukenohryis
    @boukenohryis 2 роки тому +5

    This video was quite useful thanks. I shall give some advice in return. You should practice using the $ operator because it allows you to reference data types within a pair of {} in your string. For example, instead of using ("Male "+ newFish.name) you can use ($"Male {newFish.name}"). This will save you a lot of time in cases where a string is comprised of mana data types.

    • @kapkoder4009
      @kapkoder4009  2 роки тому

      I actually never heard of this before but I’ll try it out 😅

  • @remysadventures-official8357

    Excellent tutotrial and excellent tips! Thanks bro!

  • @sebas_tian
    @sebas_tian 3 роки тому +1

    So useful brother, thank you so much.

  • @upsilan_mitstrima
    @upsilan_mitstrima 2 роки тому

    helped so much i absolutely needed this

  • @rodolf5941
    @rodolf5941 3 роки тому +4

    Holy shit Text is so damn usefull, thanks so much

    • @kapkoder4009
      @kapkoder4009  3 роки тому

      IKR! and is even cooler because you can have any color!

    • @rodolf5941
      @rodolf5941 3 роки тому

      @@kapkoder4009 I did "R" but it didn't work? FF0000 is supposed to be Red. It doesn't print "R", only R, but it's white?

    • @rodolf5941
      @rodolf5941 3 роки тому

      @@kapkoder4009 Never mind, I had to add a "#". Thanks a lot man you're a fucking genius

    • @kapkoder4009
      @kapkoder4009  3 роки тому

      @@rodolf5941 haha thanks man 😂

  • @ToonLikeEpic
    @ToonLikeEpic 2 роки тому

    Luv you man, google couldnt help me but you did the job perfectly ty very much got all what i needed

    • @kapkoder4009
      @kapkoder4009  2 роки тому

      That was the main purpose of this video 😅 because I myself couldn’t find it on Google, but I found it by searching kind of deeply, but it’s now on UA-cam 😁

  • @speedg
    @speedg 2 роки тому

    helped a lot thanks!

  • @waymanharris1284
    @waymanharris1284 2 роки тому

    Awesome 👏

  • @pourmydrank
    @pourmydrank 4 роки тому

    Nice video, thanks a lot

  • @GinoMods
    @GinoMods 2 роки тому +1

    hi boy! this is amazing and useful! but i have a question, i'm making text dialogues for my game and i have the sentences list, and in that list i want some special letters, i already have one, that special letter do the text wait for 0.1seconds and keep writing the text with the displaytext, then i want some other special letters to do it make some parts of the text change color
    or size like this
    Sentence 1:
    Hi, I'm
    Sentence 2:
    I live .
    etc, the thing between the "< >" will change the color or size, i already know how to detect the words inside of it, but i dont know how to make those words change of size or color if they are inside of it.

  • @kappdev
    @kappdev 4 роки тому +1

    It’s pretty cool but wouldn’t it be easier to just duplicate the text? Especially if you don’t change the text with scripts

    • @kapkoder4009
      @kapkoder4009  4 роки тому

      Well not really because the gender of the fish isn't the only thing being displayed to the player via text, i also display when you sell/sell all/buy/etc. a fish
      And the code here isn't even complicated at all and giving a text a brain will also make things easier to code and also more flexible
      Besides everytime a new text is created it has an animation that fades out and an animation event to destroy the text once it faded out, so that each instantiated text doesn't need a script
      If I understood you correctly.

  • @funtubestudios1079
    @funtubestudios1079 4 роки тому

    Add farm animals to devlog

  • @thatgeekguymemes
    @thatgeekguymemes 4 роки тому

    Make a 3D game