UNLESS my mouse moves to the second link, then going back to the first one fires off the event again. In the 12a example, my mouse over does debug log info about the link (NEAT!), however, it only happens once for mouse over, if I move the mouse away from the text and back again, it doesn't fire a second time UNLESS. How do you add clicking action on a link exactly? Is this needed for iOS/Android, since hover isn't really possible for us? I'm assuming that the parent doesn't *have* to have a canvas directly attached to it correct? Quick testing shows that it can still fire off the link events even if the TMP Text has a new empty gameObject between the canvas and the Text component. When I load up the scene, I notice that there is a canvas that has "Text Mesh Pro UGUI" object under it. Thank you for helping us out! So I do have some open questions if that's okay with you: You will see that TMP can return this link ID via an event when you mouse over said link. If you look at example 12a and the related scripts. A tag that would allow you to achieve something similar is the some text tag. Then the rest of your implementation isn't specific to TMP but on how to open a link in Unity via scripting. You could have several in your text, this simply means the same event callback would be called for all those links using the same ID.įocusing on understanding Example 12a and the script used to handle the event and registration for receiving those events. This is how you can internally on your end identify what should happen when this link is encountered. The ID in has to be unique for whatever you wish to implement for it. By functionality, I mean you could change the color of the text, change vertices, or in your case make it open a webpage which would make this tag behaves like. Once get this callback, you can implement whatever functionality desired for this ID. Click to expand.TextMesh Pro does not have an tag.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |