예제 #1
0
        protected override void OnCreate()
        {
            base.OnCreate();

            m_HexView   = CreateView <HexView>();
            m_ShowAsHex = EditorPrefs.GetBool(GetPrefsKey(() => m_ShowAsHex), false);

            m_PropertyGrid = new PropertyGridControl(window, GetPrefsKey(() => m_PropertyGrid), new TreeViewState());
        }
예제 #2
0
        public PropertyGridItem(PropertyGridControl owner, PackedMemorySnapshot snapshot, System.UInt64 address, AbstractMemoryReader memoryReader)
            : base()
        {
            m_Owner = owner;

            if (children == null)
            {
                children = new List <TreeViewItem>();
            }

            base.id             = s_UniqueId++;
            this.m_Snapshot     = snapshot;
            this.address        = address;
            this.m_MemoryReader = memoryReader;
            this.tooltip        = this.GetType().Name;
        }
예제 #3
0
        void InspectInternal(PackedMemorySnapshot snapshot, PackedManagedObject managedObject)
        {
            m_Snapshot      = snapshot;
            m_ManagedObject = managedObject;
            if (m_ManagedObject.address == 0)
            {
                m_ErrorString = "Cannot inspect 'null' address.";
                return;
            }


            var type = m_Snapshot.managedTypes[managedObject.managedTypesArrayIndex];

            titleContent   = new GUIContent(string.Format("C# Object Inspector | {0} | {1:X}", type.name, managedObject.address));
            m_PropertyGrid = new PropertyGridControl(null, "ManagedObjectInspectorWindow.m_propertyGrid", new TreeViewState());
            m_PropertyGrid.Inspect(m_Snapshot, managedObject);
            m_ErrorString = "";
        }
예제 #4
0
 public ArrayPropertyGridItem(PropertyGridControl owner, PackedMemorySnapshot snapshot, System.UInt64 address, AbstractMemoryReader memoryReader)
     : base(owner, snapshot, address, memoryReader)
 {
 }