private void PopulateAnimationClipData(CombatantViewData _data) { //ContainerElement.Q<VisualElement>("anim-data-area").Clear(); //PropertyField prop = new PropertyField(_data.AnimationClipData); //prop.Bind(_data.SObj_InitialState); //ContainerElement.Q<VisualElement>("anim-data-area").Add(prop); }
protected override void HandleSelection(CombatantViewData _data) { PopulateAnimationClipData(_data); ModelImporter importer = AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(_data.SelectedAnimationClip)) as ModelImporter; Selection.activeObject = AssetDatabase.LoadMainAssetAtPath(importer.assetPath); }
protected override void HandleSelection(CombatantViewData _data) { PopulateDetails(); }
protected override void HandleSelection(CombatantViewData _data) { }
protected abstract void HandleSelection(CombatantViewData _data);
public void OnSelectionMade(CombatantViewData _data) { HandleSelection(_data); }