I want to set the following Icon reference in CustomContents and display it in the HUD, but it comes up empty. Can't I use Icon in CustomContents? <equipment.icon=915cad31-12c6-4634-8bf8-0f84b1bd4943> <itemtype.icon=7c2b0551-fe86-43ba-8d0d-3df743bab6b4> <itemtype.icon=2b423d35-3666-484f-aa17-e9a6c5559a7a>
Did a quick test and works fine for me. Is a regular text in the custom content displayed correctly?
Make sure displaying the custom content uses the correct Content Key in it's text code.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
The text is displayed. The key should be correct because it is an automatic insertion since I selected equipment from the Editor's text area button and ADDed it.
How did you create the HUD prefab? Is it correct to check [use icon] in the content provider inspector?
Can you show us a screenshot of the HUD hierarchy and inspector where it is displayed well? Also, can you show us a screenshot of the inspector and how the icons are displayed in the inspector of TextMeshPro?
Ah, don't forget that icons will only be displayed in text if they're set up as sprite assets for TMP. E.g. see the TextMesh Pro Setup tutorial.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Is a regular text in the custom content displayed correctly?
Make sure displaying the custom content uses the correct Content Key in it's text code.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
The key should be correct because it is an automatic insertion since I selected equipment from the Editor's text area button and ADDed it.
How did you create the HUD prefab?
Is it correct to check [use icon] in the content provider inspector?
Can you show us a screenshot of the HUD hierarchy and inspector where it is displayed well?
Also, can you show us a screenshot of the inspector and how the icons are displayed in the inspector of TextMeshPro?
■iOS
https://itunes.apple.com/us/app/id679133055
■Android
https://play.google.com/store/apps/details?id=com.WabiPlant.SAMURAI100SlashLite
New ORK Battle Game
■iOS
https://itunes.apple.com/jp/app/id1403510381
■Android
https://play.google.com/store/apps/details?id=com.Company.AgentFight
https://honorable-income-bde.notion.site/HUD-3473966247744b42ae6b73f5cef7eecb
■iOS
https://itunes.apple.com/us/app/id679133055
■Android
https://play.google.com/store/apps/details?id=com.WabiPlant.SAMURAI100SlashLite
New ORK Battle Game
■iOS
https://itunes.apple.com/jp/app/id1403510381
■Android
https://play.google.com/store/apps/details?id=com.Company.AgentFight
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!