Example #1
0
        public static void Init(string source)
        {
            if (source != null)
            {
                _source = source;
            }
            _startSource = source;
#if UNITY_5
            JSONSource window     = GetWindow <JSONSource>("JSON");
            string     windowIcon = EditorGUIUtility.isProSkin ? "Icons/d_JSON.png" : "Icons/JSON.png";
            window.titleContent = new GUIContent("JSON", (Texture)EditorGUIUtility.Load(windowIcon));
#else
            GetWindow <JSONSource>("JSON");
#endif
        }
Example #2
0
 private void ShowSource()
 {
     JSONSource.Init(_stringJson);
 }