Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: wallabie on March 20, 2014, 08:58:44 AM

Title: How to make a drag/drop Tree from a drag/drop scroll list ?
Post by: wallabie on March 20, 2014, 08:58:44 AM
Hi,

I would like to make a Tree that has drag/drop tree nodes.  What would you suggest to use as a starting base.  I was thinking of using the drag/drop scrollable list in the example.
Title: Re: How to make a drag/drop Tree from a drag/drop scroll list ?
Post by: wallabie on March 22, 2014, 11:18:21 PM
Helllo,

This is quite a basic GUI functionality in most GUI packages but missing here.  Any ideas?
Title: Re: How to make a drag/drop Tree from a drag/drop scroll list ?
Post by: ArenMook on March 23, 2014, 02:54:06 AM
Tree as in tree view, or something else? NGUI doesn't have a tree view control example, and I would certainly not call it "basic GUI". Unity's GUI doesn't have an exposed tree view control either. You can implement your own version by instantiating elements and offsetting them as needed -- but the logic for filling the tree view is highly game-specific.
Title: Re: How to make a drag/drop Tree from a drag/drop scroll list ?
Post by: wallabie on March 23, 2014, 04:03:40 AM
Yes, I mean a Tree View Control.

Basic as in most GUI packages do have a TreeView Control.  Unity is an exception.  Flash, Flex, Xaml, Etc.  and everywhere else, a GUI system usually has a treeView Control that one does not need to create from scratch.  Just feed in an Xml data and we have data presented in a tree view.