public void OnStateSelected(CharacterStateNode _selectedNode)
        {
            if (m_copiedStateCache != null)
            {
                m_copiedStateCache.Cleanup();
                m_copiedStateCache = null;
            }

            m_selectedNode = _selectedNode;
            PopulateStateDetailsView(_selectedNode.OwningSerializedObject);
            DisplayCopyPasteButton();
        }
        private void SetTemplateData(System.Enum _incEnum)
        {
            if (_incEnum.GetType() == typeof(E_NewCombatStateTemplate))
            {
                E_NewCombatStateTemplate template = (E_NewCombatStateTemplate)_incEnum;
                m_copiedStateCache?.Cleanup();
                m_copiedStateCache = new StateDataCache();

                OTGEditorUtility.PopulateStateByTemplate(template, ref m_copiedStateCache, m_editorConfig);
                ContainerElement.Q <TextField>("new-state-name-textfield").value = template.ToString() + "template selected";
            }
        }