Hi, I want to sort a matrix in a tree, where 1. the first element represent the parent and all the rest are inside it 2. except the first one, the rest may not follow any order of inclusion relationship here is the matrix, 1, 2, 3, 4, 5, 6, 7, 8 2, 3, 4, 5 4, 3, 5 3, 5 5 6, 7 7 8 9, 10 10 The problems are 1. is how would I know which one is the imedaite parent of i.e 3 or 7 or 8 2. 9 is another root node (which do not have any parent like 1)
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
To help users post good questions and use the site effectively we have posted a user guide. Please check it out.
Answers and Comments
3 People are following this question.
Accessing Unity tree creator through C#
Messed up Trees in only my scene (not new scene)
The mesh of the trees (Branchs) don't show. . .
Making Tree Creator Trees Unique
custom tree from 3ds max doesn't bending