Ejemplo n.º 1
0
 public InputActionCopyPasteUtility(InspectorTree tree)
 {
     m_Tree  = tree;
     m_Apply = () =>
     {
         m_Tree?.Reload();
     };
 }
Ejemplo n.º 2
0
        public static InspectorTree CreateFromActionMapProperty(Action applyAction, SerializedProperty actionMapProperty)
        {
            var treeView = new InspectorTree(applyAction, new TreeViewState());

            treeView.m_ActionMapSerializedProperty = actionMapProperty;
            treeView.Reload();
            treeView.ExpandAll();
            return(treeView);
        }
Ejemplo n.º 3
0
 public CopyPasteUtility(InspectorTree tree)
 {
     m_Tree  = tree;
     m_Apply = () =>
     {
         if (m_Tree != null)
         {
             m_Tree.Reload();
         }
     };
 }