Beispiel #1
0
        protected void Awake()
        {
            new XmlDocument().CreateComment("Test if System.XML is available (REPL fails with no message without it)");

            Instance = this;

            Inspector  = new Inspector.Inspector(targetTransform => TreeViewer.SelectAndShowObject(targetTransform));
            TreeViewer = new ObjectTreeViewer(items =>
            {
                Inspector.InspectorClear();
                foreach (var stackEntry in items)
                {
                    Inspector.InspectorPush(stackEntry);
                }
            });

            Repl = new ReplWindow();
        }
Beispiel #2
0
        protected void Awake()
        {
            Instance = this;

            DnSpyPath = new ConfigWrapper <string>(nameof(DnSpyPath), this);
            DnSpyPath.SettingChanged += (sender, args) => DnSpyHelper.DnSpyPath = DnSpyPath.Value;
            DnSpyHelper.DnSpyPath     = DnSpyPath.Value;

            Inspector  = new Inspector.Inspector(targetTransform => TreeViewer.SelectAndShowObject(targetTransform));
            TreeViewer = new ObjectTreeViewer(items =>
            {
                Inspector.InspectorClear();
                foreach (var stackEntry in items)
                {
                    Inspector.InspectorPush(stackEntry);
                }
            });

            Repl = new ReplWindow();

            DnSpyPath = new ConfigWrapper <string>(nameof(DnSpyPath), this);
            DnSpyPath.SettingChanged += (sender, args) => DnSpyHelper.DnSpyPath = DnSpyPath.Value;
            DnSpyHelper.DnSpyPath     = DnSpyPath.Value;
        }