예제 #1
0
        void Share()
        {
            _sb.Length = 0;
            // Get all visible cell
            foreach (var monoInfo in _monoInfos)
            {
                _sb.AppendFormat("========= {0} ========\n", monoInfo.name);
                foreach (var componentInfo in monoInfo.componentInfos)
                {
                    _sb.AppendFormat("\t\t--- {0}\n", componentInfo.name);
                    foreach (var fieldInfo in componentInfo.fieldInfos)
                    {
                        _sb.AppendFormat("\t\t\t\t{0}({1}) - {2}\n", fieldInfo.name, fieldInfo.type, fieldInfo.value);
                    }
                    _sb.AppendLine();

                    // if not showing base class, break after the first iteration
                    if (!_isShowBaseClass)
                    {
                        break;
                    }
                }
                _sb.AppendLine();
                _sb.AppendLine();
                _sb.AppendLine();
            }

            NativeShare.Share(_sb.ToString());
        }
예제 #2
0
        static void ShareLog(string log)
        {
#if UNITY_EDITOR || UNITY_STANDALONE
            TextEditor textEditor = new TextEditor();
            textEditor.text = log;
            textEditor.SelectAll();
            textEditor.Copy();
            Debug.Log("Log has been coppied to Clipboard");
#elif UNITY_IOS || UNITY_ANDROID
            NativeShare.Share(log);
#endif
        }
예제 #3
0
        void Share()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine(AppAndDeviceInfo.FullInfos());
            sb.AppendLine("------------");
            sb.AppendLine();

            foreach (var kv in _keyValues)
            {
                sb.AppendFormat("{0}: {1}\n", kv.key, kv.value.ToString());
            }

            NativeShare.Share(sb.ToString());
        }
 void ShareContent()
 {
     NativeShare.Share("", _fileInfo.FullName);
 }
예제 #5
0
 public void Share()
 {
     NativeShare.Share(_infoNode.name);
 }