Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question how to display emojis of multiple code points??

Discussion in 'UI Toolkit' started by dujimache123, Dec 1, 2022.

  1. dujimache123

    dujimache123

    Joined:
    Sep 8, 2020
    Posts:
    10
    Assign and use Unicode for a sprite
    You can assign a Unicode to a sprite and use the Unicode directly in your text object instead of the <sprite> tag.

    For example, the Unicode for a smiling face emoji is U+1F60A. To assign it to a sprite in your sprite asset:

    1. In the sprite asset’s Inspector window, find the glyph in the Sprite Character Table. You can browse or search by index or name.
    2. Click the glyph to enable the edit mode.
    3. In the Unicode box, enter +1F60A.
    4. Click the Unicode label to save your changes. The Unicode changes to 0xF1F60A.
    To use the smiling face emoji in your text object, enter \U00F1F60A.


    according to the above method , i can input the emojis of single code point. My question is : how to correctly set the unicode value of multi code point emojis. such as #️⃣ : U+0023 U+FE0F U+20E3. and other emojis that use Char Sequence.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,223
    Color glyph support will be coming in the future. This will then handle this correctly with the font data.
    It will soon be available for TMP and then UI Toolkit will follow after.
     
    dujimache123 likes this.
  3. dujimache123

    dujimache123

    Joined:
    Sep 8, 2020
    Posts:
    10
    how long will be availabel??? 2 monthes?? half year???
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,223
    I can't give a timeline at the moment. The work is currently ongoing.
     
  5. dujimache123

    dujimache123

    Joined:
    Sep 8, 2020
    Posts:
    10
    thank you very much!!!
     
    karl_jones likes this.
  6. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
    Hi there,
    I am using the Emoji's with the Sprite asset and I can use the Emoji's with single Unicode Like "U+1F600" , but there is the Issue that how can I use the Emoji's with the long Unicode Like" u1f3c3_1f3fb_200d_2640" the Running Girl Emoji.
    I try to write it and it shows the Girl but with the Emoji it shows the Boxes.
    Will you please let me know How I can Do it.
    Thanks in Advance.
    @Stephan_B
    @HugoBD-Unity
    @karl_jones
     
  7. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
    Hey, Karl.
    Any Update regarding this Issue.
     
  8. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,223
  9. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
    Thanks Karl for you response,
    However this thread Didn't help me out.
    I use the Noto Color Emoji Font and make the color Font Asset by the steps in the Thread you mentioned above but it didn't Work for me.
    This is the font I am Using. "https://fonts.google.com/noto/specimen/Noto+Color+Emoji" by going on this Page I click on the Download Family.
    In case If this is Not the Right Font Can yo please let me know about the Right Asset. I want to use Emoji's In IOs And Android Also.
    Moreover, I am struggling with ow for Over the Month.
    upload_2023-7-26_10-10-37.png
     
  10. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
    Moreover, if I tried to Paste the Unicode of Emoji in the text field this is Showing.
    upload_2023-7-26_10-30-46.png
     
  11. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,223
    What version of Unity and TMP are you using?
     
  12. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
    Unity: 2022.3.5f
    TMp: 3.2.0-pre.4
     
  13. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
    Moreover, When I used the Different Emoji Font like the Apple Emoji Font it is Working but missing the Most of the Emoji's.
    Images are Attached.
    upload_2023-7-26_16-24-25.png
    upload_2023-7-26_16-24-29.png
    upload_2023-7-26_16-24-33.png
     
  14. HugoBD-Unity

    HugoBD-Unity

    Unity Technologies

    Joined:
    May 14, 2018
    Posts:
    490
    Hi @rahmat_ali_infinityup! The Unicode you've tried isn't valid, as it's missing the last digit. Try `\U0001F600`. It's a mistake in the doc that we'll fix.
     
    karl_jones likes this.
  15. HugoBD-Unity

    HugoBD-Unity

    Unity Technologies

    Joined:
    May 14, 2018
    Posts:
    490
    Unfortunately, as stated in the limitation part of the doc, we currently only have partial support for OpenType Font Features. You'll find more information on it in this forum post.
     
  16. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
    Well It's Good to know,
    Is there any specific date that when we are able to have the All emoji's in unity?
     
    HugoBD-Unity likes this.
  17. HugoBD-Unity

    HugoBD-Unity

    Unity Technologies

    Joined:
    May 14, 2018
    Posts:
    490
    We are working on a solution for full emoji support at the moment, but we are unfortunately not ready to communicate an ETA yet.
     
    CPUCPU likes this.
  18. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
    Ok Thankyou for letting us know.
     
  19. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
    There is One more Question When there are You Planning to add the Use Filename as Unicode in the Sprite Importer.
    Because this is only in the Preview TextmeshPro but according to my game Pattern I cannot use the preview version of the TextmeshPro if you guys can add this Functionality in the Tested Version of the TextmeshPro. Because it is Very Difficult to rename all the Sprite using in the Sprite asset
    Image is Attached:
     

    Attached Files:

  20. cnsjjj

    cnsjjj

    Joined:
    Aug 13, 2022
    Posts:
    35
    Hi HugoBD! Any update on the solution for full emoji support? It’s sad that UIToolkit currently does not support long unicode. Please saved me!