Learn how to copy text from your Unity game to your system's clipboard to paste everywhere and add a colored highlight to your text to make it visible. This works with Text Mesh Pro You can paste text copied like this into input fields in your Unity game, or outside of your game, as it uses the operating system's clipboard. We go through four different ways to tackle this: Copy all of a text box's contents by button click, copy all of a text box's contents by clicking on the box itself, copy predefined words by utilizing the Text Mesh Pro link tag and copy text freeform like you are used to in a text editor.
DuckDuckQuack search field is a simple input field, the text block is an input field set to multi line :)
✍️ Script on Github
https://github.com/Maraakis/Christina...
💬 Discord 💛
You are very welcome to join!
/ discord
🛍️ Store links 🛍️
If you'd like to support my channel, consider using my affiliate link when buying cool stuff in the Unity asset store: https://assetstore.unity.com/?aid=110... [Affilate link]
Or on Humblebundle: https://www.humblebundle.com/?partner... [Affiliate link]
Or in the Synty Store: https://syntystore.com/98327 [affiliate link]
🎮 Play my games on Itch.io 🎮
https://christinacreatesgames.itch.io
📖 Chapters 🔖
00:00 Different ways to highlight and copy to clipboard
00:39 Copy to clipboard by button press
01:49 Adding colored marking to the text
03:03 Copy to clipboard by press on the textbox instead of button
03:18 Changing the color of the highlight
04:24 Copy and highlight predefined areas from a text with the link tag
08:53 Copy and highlight text like in a text editor - the problem
09:41 How to highlight and copy text from a text box - to solution
Watch video How to Highlight, Copy Paste Text in Unity with TextMesh Pro online, duration hours minute second in high quality that is uploaded to the channel Christina Creates Games 12 March 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 1,600 times and liked it 67 visitors.