Skip to content

Commit d39af93

Browse files
committed
【Update】 Update Readme
1 parent 7165798 commit d39af93

1 file changed

Lines changed: 39 additions & 1 deletion

File tree

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,40 @@
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...)

0 commit comments

Comments
 (0)