File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# BlankOperationClipboard
2- BlankOperationClipboard
2+
3+ DEMO
4+
5+ ``` csharp
6+
7+ using UnityEngine ;
8+
9+ public class BlankOperationClipboardDemo : MonoBehaviour
10+ {
11+ private string text = " demoText" ;
12+ private string result = " " ;
13+ void OnGUI ()
14+ {
15+ text = GUILayout .TextField (text , GUILayout .Width (500 ), GUILayout .Height (100 ));
16+ if (GUILayout .Button (" SetValue" , GUILayout .Width (500 ), GUILayout .Height (100 )))
17+ {
18+ BlankOperationClipboard .SetValue (text );
19+ }
20+ if (GUILayout .Button (" GetValue" , GUILayout .Width (500 ), GUILayout .Height (100 )))
21+ {
22+ result = BlankOperationClipboard .GetValue ();
23+ }
24+ GUILayout .Label (result );
25+ }
26+ }
27+
28+ ```
29+
30+ # Important Tips (Android)
31+ ## 需要添加下面的Activity:
32+
33+ ``` xml
34+
35+ <activity android : name =" com.alianhome.clipboardoperation.MainActivity" />
36+ ```
37+
38+ * Email: wangfj11@foxmail.com
39+ * by Blank
40+ * by blankOperationClipboard.alianhome.com (waiting...)
You can’t perform that action at this time.
0 commit comments