コード例 #1
0
 private void FillDependListView(DebugProviderInfo providerInfo)
 {
     _dependListView.Clear();
     _dependListView.ClearSelection();
     _dependListView.itemsSource = providerInfo.BundleInfos;
     _dependListView.Rebuild();
 }
コード例 #2
0
        private void BindIncludeListViewItem(VisualElement element, int index)
        {
            List <DebugProviderInfo> providers    = _usingListView.itemsSource as List <DebugProviderInfo>;
            DebugProviderInfo        providerInfo = providers[index];

            // Asset Path
            var label1 = element.Q <Label>("Label1");

            label1.text = providerInfo.AssetPath;

            // Spawn Scene
            var label2 = element.Q <Label>("Label2");

            label2.text = providerInfo.SpawnScene;

            // Spawn Time
            var label3 = element.Q <Label>("Label3");

            label3.text = providerInfo.SpawnTime;

            // Ref Count
            var label4 = element.Q <Label>("Label4");

            label4.text = providerInfo.RefCount.ToString();

            // Status
            var label5 = element.Q <Label>("Label5");

            label5.text = providerInfo.Status.ToString();
        }
コード例 #3
0
 private void AssetListView_onSelectionChange(IEnumerable <object> objs)
 {
     foreach (var item in objs)
     {
         DebugProviderInfo providerInfo = item as DebugProviderInfo;
         FillDependListView(providerInfo);
     }
 }