How to open a URL or link from a text box with Unity 6 TextMesh Pro š
Chapters
Opening a link to awebsite (URL) by clicking on a text in a TextMesh Pro Text box is simple! It works by utilizing the link-tag provided by Text Mesh Pro and we need to check if the tagged element at our mouse position actually contains a link tag, for which we will use a Link Handler we created in a different video.
Just add a hand full lines of code to the Link Handler we created in this video: https://www.youtube.com/watch?v=N6vYyCahLr8 (that one teaches you how to make parts of your text clickable. If you really only need it for a link, just remove the event at the bottom of the script.)
Making clickable URLs is only one of the possible use cases of the link tag!
š Chapters š
š Get the PDF Version of my tutorials
Would you rather read a book? I have a collection of eBooks on the Unity UGUI System here:
š Itch: https://christinacreatesgames.itch.io/
š¬ Join the Discord
You are very welcome to join https://discord.gg/8pDT2J2TBX !
š® Play My Games
š² https://christinacreatesgames.itch.io
šļø Recommended Assets
https://assetstore.unity.com/lists/highly-recommended-9071944798250?aid=1101lr4hF [affiliate]
š List of books all around Gamedev and Design I recommend: https://www.christinacreatesgames.com/bookshelf
Otherwise, using my affiliate codes for these stores helps to support my channel:
š Unity Asset Store: https://assetstore.unity.com/?aid=1101lr4hF [affiliate]
šŖ Synty Store: https://syntystore.com/christinacreatesgames [affiliate]
šŖø Envato Elements: https://1.envato.market/ChristinaCreatesGames [affiliate]
š¦ Amazon: https://amzn.to/3G8NgFq [affiliate]
š Actionable UI Feedback for Your Game
I offer UI consulting for gamedev projects! With 15+ years of design experience and a background of a teacher, Iām here to help:
š Learn more: https://www.vennegerts.com/en/gamedevelopment-consulting/
ā Support Me on Ko-fi
If you enjoy the content and want to support my work:
š Buy me a cocoa: https://ko-fi.com/christinacreatesgames
#unitytutorial #unity3d #gamedev #indiedev
Education
#TextMeshPro URL
#Open URL Text Mesh Pro
#open url in unity
#Open website Text Mesh Pro
#Text Mesh Pro Link tag
#Link tag
#Unity link tag
#Unity tutorial
#Learn Unity
#text mesh pro
#game development
#textmesh pro
#unity ui
#rich text tag
#unity 3d
#unity game development
#unity textmesh pro
#unity ui tutorial
#unity game tutorial
#text mesh pro effects
#text mesh pro in unity
#unity textmeshpro
#text mesh pro scripting
#how to use text mesh pro
#Textmeshpro in unity