Created
January 11, 2016 11:39
-
-
Save sehm/d5a75d9042fee4862385 to your computer and use it in GitHub Desktop.
Unity Editor スクリプト:指定文字列をクリップボードにコピーする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEngine; | |
using System; | |
void CopyToClipboard(string txt) | |
{ | |
// 代入するだけでクリップボードにコピーされる | |
// 何でも string 型にすれば、クリップボードにつっこめる。 | |
EditorGUIUtility.systemCopyBuffer = txt; 。 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment