Skip to content

Commit 005fbc6

Browse files
committed
Adding Export of Raw Json Data to Clipboard Str+V
1 parent e25366d commit 005fbc6

File tree

14 files changed

+477
-2208
lines changed

14 files changed

+477
-2208
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
public class CopyToClipBoard : MonoBehaviour
6+
{
7+
private void Start()
8+
{
9+
Debug.Log("----------\nSTRING COPY TO CLIPBOARD IN PROGRSSS\n----------");
10+
string catalogueName = "Mein_Katalog.qcat";
11+
SaveSystem.instance.loadTextRawFromJson(catalogueName);
12+
string catalogueRawText = SaveSystem.instance.loadTextRawFromJson(catalogueName);
13+
if (catalogueRawText != null)
14+
{
15+
GUIUtility.systemCopyBuffer = catalogueRawText;
16+
}
17+
else
18+
{
19+
GUIUtility.systemCopyBuffer = "Didn't Work :(";
20+
}
21+
Debug.Log("----------\nSTRING COPY TO CLIPBOARD DONE\n----------");
22+
}
23+
}

LearningForDummies/Assets/CopyToClipBoard.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)