private void FillDependListView(DebugProviderInfo providerInfo) { _dependListView.Clear(); _dependListView.ClearSelection(); _dependListView.itemsSource = providerInfo.BundleInfos; _dependListView.Rebuild(); }
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(); }
private void AssetListView_onSelectionChange(IEnumerable <object> objs) { foreach (var item in objs) { DebugProviderInfo providerInfo = item as DebugProviderInfo; FillDependListView(providerInfo); } }