Esempio n. 1
0
        protected override Future setClipboardData(ClipboardData data)
        {
#if UNITY_WEBGL
            UIWidgetsCopyTextToClipboard(data.text);
#else
            GUIUtility.systemCopyBuffer = data.text;
#endif

            return(Future.value());
        }
        protected override IPromise setClipboardData(ClipboardData data)
        {
#if UNITY_WEBGL
            UIWidgetsCopyTextToClipboard(data.text);
#else
            GUIUtility.systemCopyBuffer = data.text;
#endif

            return(Promise.Resolved());
        }
Esempio n. 3
0
        protected override Future <ClipboardData> getClipboardData(string format)
        {
            var data = new ClipboardData(text: GUIUtility.systemCopyBuffer);

            return(Future.value(FutureOr.value(data)).to <ClipboardData>());
        }
Esempio n. 4
0
 protected abstract Future setClipboardData(ClipboardData data);
Esempio n. 5
0
 public static Future setData(ClipboardData data)
 {
     return(_instance.setClipboardData(data));
 }
Esempio n. 6
0
        protected override IPromise <ClipboardData> getClipboardData(string format)
        {
            var data = new ClipboardData(text: GUIUtility.systemCopyBuffer);

            return(Promise <ClipboardData> .Resolved(data));
        }
Esempio n. 7
0
 protected override IPromise setClipboardData(ClipboardData data)
 {
     GUIUtility.systemCopyBuffer = data.text;
     return(Promise.Resolved());
 }
Esempio n. 8
0
 protected abstract IPromise setClipboardData(ClipboardData data);
Esempio n. 9
0
 public static IPromise setData(ClipboardData data)
 {
     return(_instance.setClipboardData(data));
 }