Search Unity

TextMesh Pro Full Emoji Support Api (emoji Sequen

Discussion in 'UGUI & TextMesh Pro' started by Rafael_CS, Apr 12, 2019.

  1. cyg02032015

    cyg02032015

    Joined:
    May 17, 2022
    Posts:
    2
    Me toooo
     
  2. Rafael_CS

    Rafael_CS

    Joined:
    Sep 16, 2013
    Posts:
    162
    you can only access it using package.json and unity buddy... its not possible to access it using browser.

    follow the tutorial of the initial post and download the package with unity package manager and you will be able to see the source code.
     
  3. cyg02032015

    cyg02032015

    Joined:
    May 17, 2022
    Posts:
    2
    Thank U for your Reply, That's awesome emojis script.
     
  4. Riken_rds

    Riken_rds

    Joined:
    Apr 4, 2017
    Posts:
    49
    hello support. This url is not valid please provide valid url or project link .
    thank you
     
  5. Rafael_CS

    Rafael_CS

    Joined:
    Sep 16, 2013
    Posts:
    162
    Read the tutorial in first post... and stop spamming the forum with this topic.. you just need to read the first page.
     
  6. ravi_unity307

    ravi_unity307

    Joined:
    Sep 14, 2020
    Posts:
    6
    Hey @Rafael_CS, Great asset. But caret position is incorrect when using with textmesh pro input field. How can i fix it ?
     
  7. Sushantha_SV

    Sushantha_SV

    Joined:
    Feb 10, 2019
    Posts:
    10
    Hello, there is one problem!

    After updating to v.1.1.5, using a 32*32 pixel sheet to make emoji sprites gives some half-cut emoji.

    For example, if the sheet used is sheet_apple_32.png or sheet_google_32.png, the following problem is seen.

    I think the problem is with the size of the sheet. From v12 to v14, it's clear that it's changed.

    Does anyone else have the same problem? Please let me know if you find a way to solve the same problem.

    upload_2022-8-25_17-34-23.png

    Best regards
     
  8. klad

    klad

    Joined:
    Jul 13, 2011
    Posts:
    17
    Any idea why some emojis appear in black & white while some others appear just fine?



    vs

     
  9. Rafael_CS

    Rafael_CS

    Joined:
    Sep 16, 2013
    Posts:
    162
    Check texture atlas used... probably it may contains some outlined emojis
     
  10. Create_AlanGaspar

    Create_AlanGaspar

    Joined:
    Aug 14, 2019
    Posts:
    5
    It is possible to change the char of the emoji to <sprite=num> instead? I'm sending the text to the backend but the emojis are not supported in there
     
  11. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    727
    Hi, I have an issue, my app is connecting to Tiktok chat so not all the emojis are working, for example, i saw the name
    , the strawberry and milk show up, but not the Ran. Do you have any idea how to fix these?

    Edit: sorry, even unity forum doesn't like that emoji lol, i saw it in the text box, but when i pressed post it disappeared.



    This is what the emojis look like, they're letters.
     
  12. GroovyKoala

    GroovyKoala

    Joined:
    Feb 16, 2022
    Posts:
    23
    Hi @Rafael_CS , tried to compile the project with Unity 2022.1.21f1 target WebGL but got a few errors. Also, I'm not able to use the simulator to preview the EmojiExample scene.

    upload_2022-11-9_11-3-2.png
     
  13. mingos77

    mingos77

    Joined:
    Dec 6, 2021
    Posts:
    4
    Platform Specific Fields are not working in my environment.
    (Override Android Definition and Override iOS Definition)
    Sprite sheets are not switched for both Android and iOS.

    My environment:
    Kyub EmojiSearchAPI 1.1.5
    Unity 2019.4.40f1
    TextMeshPro 2.1.6
     
  14. Carlo_H

    Carlo_H

    Joined:
    Sep 29, 2018
    Posts:
    5
    We also have issue with using this emoji enabled textfield with TMP_Inputfield, any multicharacter emojis will misplace the caret and visually it gets stuck after first such emoji.
    Is the Inputfields supported, or is there any fix for the caret
     
  15. unity_25FC214382F260E8189F

    unity_25FC214382F260E8189F

    Joined:
    May 24, 2022
    Posts:
    1
    Hi, the plugin works great, but I'm seeing extra missing squares when I enter certain emojis like the baseball and golf hole. Any ideas on how to remedy this would be very much appreciated. Thanks!
     
  16. mcolombo

    mcolombo

    Joined:
    Sep 27, 2017
    Posts:
    16
    Hi @Rafael_CS ,
    I implemented this with no problems in Android.
    But when I deploy and then run the app on iOS, it crashes, with this log:

    CSharp]2023-01-27 17:14:27.353652-0300 TrucoBlyts[380:9733] Errors found! Invalidating cache...
    Graphics device is null.
    TMPro.ShaderUtilities:GetShaderPropertyIDs()
    Kyub.EmojiSearch.TMP_EmojiSpriteAsset:UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize()


    Am I missing something here?
    Thanks!!
     
    iluhin-pro likes this.
  17. ppzhu159

    ppzhu159

    Joined:
    Mar 17, 2022
    Posts:
    1
  18. fun_unity157

    fun_unity157

    Joined:
    Jul 5, 2022
    Posts:
    1
  19. dev-concappt-media

    dev-concappt-media

    Joined:
    May 9, 2018
    Posts:
    2

    How did you resolve this Issue? I also get Graphics Device null?
     
    iluhin-pro likes this.
  20. eflash11

    eflash11

    Joined:
    Apr 10, 2018
    Posts:
    2
    Hello, when my work is SO, I have a picture winning, I took v12 - v14 - v15 ... If I take test ones, then everything is fine.
    Unity 2021.3.1f
    upload_2023-6-12_18-3-0.png
     
  21. eflash11

    eflash11

    Joined:
    Apr 10, 2018
    Posts:
    2
    The problem is solved - the atlas for 32 needs to be returned to the 4k format and then everything cuts the norms, but the problem is, not all phones support 4k atlases.
     
  22. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
    Hi Everyone,
    from Where I can Download the Emoji pack for the Android and IOS
    Thanks In Advance.
     
  23. ageana

    ageana

    Joined:
    Nov 6, 2013
    Posts:
    48
    Try this: https://github.com/iamcal/emoji-data
     
  24. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
    Hi, Thanks for your reply but I want the Png emoji file Pack for the IOS the Github project have the Android Emoji's But Missing the Flags and also Not Have the Apple Emoji.
    Any Solution For that?
    @ageana
     
  25. ageana

    ageana

    Joined:
    Nov 6, 2013
    Posts:
    48
  26. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
    Thank you very Much,
    I feel like Dumb to ask it. But thanks any way.
    Appreciated.
     
    ageana likes this.
  27. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
    @ageana
    Can you know how to use the Emoji's with the Long unicode Like "u1f3c3_1f3fb_200d_2640" in the Sprite Asset.
    I can Use the Single Unicode emoji's but when the long Emoji the Emoji's are Not Working properly.
     
  28. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
    I Have tried this but it is not working properly.
    I want the Package where the Emoji are placed separately for the Android and the IOS.

    1- What I am doing is that I Select the Desired Emoji's to use in my game drop it in the Texture Packer Importer.
    2- Make the Sprite sheet and the Json file of that Sprite sheet.
    3- Then I use the json file and the Sprite sheet I made in the texture packer Importer in Unity And to assign the unicode to the Sprites One by one In by creating the Sprite Asset of that sprite sheet and json file to keep the data of each emoji.
    4- Then I use the Emoji's in My Project.

    The Sheet you shared already is sprite sheet so cannot make the json in Texture packer Impoter.
    This sheet didn't resolve My problem.
     
  29. RahmatAli_Noob

    RahmatAli_Noob

    Joined:
    Sep 13, 2022
    Posts:
    74
  30. mingos77

    mingos77

    Joined:
    Dec 6, 2021
    Posts:
    4
    @Rafael_CS

    In my environment, even with the "Override iOS Defintion" checked, the Android emoji (EmojiData_v14_google_64.png) is displayed on my iOS device.
    I want to display the EmojiData_v14_apple_64.png emoji on iOS devices.
    Do you know the cause?
    My Unity version is Unity 2021.3.28f1.

     
  31. Cotana

    Cotana

    Joined:
    Jan 15, 2020
    Posts:
    1
  32. hippogames

    hippogames

    Joined:
    Feb 5, 2015
    Posts:
    233
    The gitlab link is not working. Was the project abandoned?
     
  33. Rafael_CS

    Rafael_CS

    Joined:
    Sep 16, 2013
    Posts:
    162
    I will generate a public repository for the project
     
  34. 0961563202

    0961563202

    Joined:
    May 22, 2019
    Posts:
    1
    Can you post your new repository?
     
  35. hippogames

    hippogames

    Joined:
    Feb 5, 2015
    Posts:
    233
  36. cnsjjj

    cnsjjj

    Joined:
    Aug 13, 2022
    Posts:
    35
    Hi @Rafael_CS
    Thanks for your super awesome project!
    You solved the problem of long unicode(\U0001f468\u200d\U0001f468\u200d\U0001f467\u200d\U0001f466) by using TMP_EmojiTextUGUI
    Can this be extended to UIToolkit? Do you have any plans?
    Thanks for your help!
     
  37. ETGgames

    ETGgames

    Joined:
    Jul 10, 2015
    Posts:
    101
    getting these errros with unity 2023.2.0f1


    Library/PackageCache/com.kyub.emojisearch@66f73035a3/Runtime/Scripts/TMP_EmojiTextUGUI.cs(106,19): error CS0122: 'TMP_Text.TextInputSources' is inaccessible due to its protection level


    Library/PackageCache/com.kyub.emojisearch@66f73035a3/Runtime/Scripts/TMP_EmojiTextUGUI.cs(353,36): error CS0115: 'TMP_EmojiTextUGUI.CalculatePreferredValues(float, Vector2, bool)': no suitable method found to override
     
    etopian likes this.
  38. j-rei

    j-rei

    Joined:
    Aug 26, 2016
    Posts:
    4
    Hello, just wanted to thank you for providing this asset! The Emojis do seem to work very well, I havent found any other solution that actually made is possible and so easy.

    I am having issues though with the platform switching capability, I have managed to get around it by altering the code, but it would be nice if we could get it into the repository as well, so that I dont have to worry about updating the asset in the future and ruining the changes.

    I am using Unity 2022.3, and it does seem like the TMP_SpriteEmojiAsset.cs code doesn't actually execute the serialization callbacs on the platform itself, I was testing this with iOS, and the sprite did not switch, even though the override for iOS was enabled and it had another spritesheet. What actually made it work on my side was adding the function to change everything in OnEnable function, I have attached the altered script that made it work. Just let me know if you'd like me to remove the script in case that's unwanted.

    Also, it seemed like the callbacks simply never executed on the build, I am not sure if this ever worked as intended, but maybe it did in older unity versions.

    It would be greatly appreciated if you could maybe update the asset with provided changes, or similar ones, just so that the functionality does work.

    Thank you so much!
     

    Attached Files:

  39. etopian

    etopian

    Joined:
    Dec 11, 2018
    Posts:
    9
    The Assembly Definitions of this package do version checks against TextMeshPro, which has been deprecated in your version of Unity.

    To resolve these errors you can go into the two assembly definitions and update the expressions to be active if UGUI is 2.0 or higher.