Пример #1
0
        void OnListViewTypeSelected(PackedManagedType?type)
        {
            if (!type.HasValue)
            {
                m_Selected = RichManagedType.invalid;
                m_ConnectionsView.Clear();
                m_PropertyGridView.Clear();
                return;
            }

            m_Selected = new RichManagedType(snapshot, type.Value.managedTypesArrayIndex);
            var staticClass  = m_Selected.packed;
            var staticFields = new List <PackedManagedStaticField>();

            // Find all static fields of selected type
            foreach (var sf in snapshot.managedStaticFields)
            {
                if (sf.managedTypesArrayIndex == staticClass.managedTypesArrayIndex)
                {
                    staticFields.Add(sf);
                }
            }
            m_ConnectionsView.Inspect(staticFields.ToArray());

            m_PropertyGridView.Inspect(m_Selected);
        }
Пример #2
0
        // Called if the selection changed in the list that contains the managed objects overview.
        void OnListViewSelectionChange(PackedGCHandle?packedGCHandle)
        {
            m_Selected = packedGCHandle;

            if (!packedGCHandle.HasValue)
            {
                m_RootPathView.Clear();
                m_ConnectionsView.Clear();
                return;
            }

            m_ConnectionsView.Inspect(packedGCHandle.Value);
            m_RootPathView.Inspect(m_Selected.Value);
        }
Пример #3
0
        void OnListViewSelectionChange(PackedManagedObject?item)
        {
            m_Selected = RichManagedObject.invalid;
            if (!item.HasValue)
            {
                m_RootPathView.Clear();
                m_ConnectionsView.Clear();
                m_PropertyGridView.Clear();
                return;
            }

            m_Selected = new RichManagedObject(snapshot, item.Value.managedObjectsArrayIndex);
            m_ConnectionsView.Inspect(m_Selected.packed);
            m_PropertyGridView.Inspect(m_Selected.packed);
            m_RootPathView.Inspect(m_Selected.packed);
        }