protected LabelElementInLabelConfig(LabelConfigEditor <T> editor, SerializedProperty labelsArray)
        {
            m_LabelConfigEditor = editor;
            m_LabelsArray       = labelsArray;

            Init();
        }
        public NonPresentLabelElement(LabelConfigEditor <T> editor)
        {
            var uxmlPath = m_UxmlDir + "SuggestedLabelElement.uxml";

            AssetDatabase.LoadAssetAtPath <VisualTreeAsset>(uxmlPath).CloneTree(this);
            label = this.Q <Label>("label-value");
            var addButton = this.Q <Button>("add-button");

            addButton.clicked += () => { editor.AddLabel(label.text); };
        }
Esempio n. 3
0
 public IdLabelElementInLabelConfig(LabelConfigEditor <IdLabelEntry> editor, SerializedProperty labelsArray) :
     base(editor, labelsArray)
 {
 }
 public ColoredLabelElementInLabelConfig(LabelConfigEditor <SemanticSegmentationLabelEntry> editor, SerializedProperty labelsArray) : base(editor, labelsArray)
 {
 }