using UnityEditor; using UnityEngine.UIElements; namespace PVSkill { public class SkillEffectElement { private VisualElement root; private SkillEffectConfig curSkillEffectConfig; // elem private Label effectTypeLbl; private Label canBeParryLbl; private Label canBeFightBackLbl; private Label canBeInterruptLbl; private Label canBeSupportLbl; private Label numericExpressionLbl; public SkillEffectElement(VisualElement root) { var visualTree = AssetDatabase.LoadAssetAtPath("Assets/Editor/SkillEditor/SkillEffectElement.uxml"); visualTree.CloneTree(root); this.root = root; this.effectTypeLbl = root.Q