void Unpack()
        {
            _unpackedCrawl = CrawlDataUnpacker.Unpack(_packedCrawled);
            m_Status       = "Loading snapshot in Grid .....";
#if !UNITY_5_6_OR_NEWER
            m_nodeView.ClearNodeView();
            bCheckHeapOnly = true;
#endif
            if (bCheckHeapOnly)
            {
                m_nodeView.CreateTreelessView(_unpackedCrawl);
            }
            else
            {
                Array.Sort(_unpackedCrawl.nativeObjects, new NativeUnityEngineObjectComparer());
                Array.Sort(_unpackedCrawl.managedObjects, new ManagedObjectComparer());
                m_nodeView.bShowMemHeap = false;
#if UNITY_5_6_OR_NEWER
                m_TreeModel.SetData(populateData(_unpackedCrawl.allObjects.Length));
                m_TreeView.Reload();
#endif
            }
            //Debug.Log("Snapshot Loaded! " + _unpackedCrawl);
            m_Status = "Snapshot Loaded!";
        }
Ejemplo n.º 2
0
        void Unpack()
        {
            _unpackedCrawl = CrawlDataUnpacker.Unpack(_packedCrawled);
            m_Status       = "Loading snapshot in Grid .....";
#if !UNITY_5_6_OR_NEWER
            m_nodeView.ClearNodeView();
#endif
            m_nodeView.CreateTreelessView(_unpackedCrawl);
            m_nodeView.bShowMemHeap = false;
            Array.Sort(_unpackedCrawl.nativeObjects, new NativeUnityEngineObjectComparer());
            Array.Sort(_unpackedCrawl.managedObjects, new ManagedObjectComparer());
            m_Status = "Snapshot Loaded!";
        }