Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity copy to clipboard

using UnityEngine;

public static class ClipboardExtension
{
    /// <summary>
    /// Puts the string into the Clipboard.
    /// </summary>
    public static void CopyToClipboard(this string str)
    {
        GUIUtility.systemCopyBuffer = str;
    }
}
Source by thatfrenchgamedev.com #
 
PREVIOUS NEXT
Tagged: #unity #copy #clipboard
ADD COMMENT
Topic
Name
8+9 =