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.
To help users navigate the site we have posted a site navigation guide.
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.
Answers and Comments
3 People are following this question.
Tree Creator Null Exception
Are there different types of pre-modeled trees?
TreeCreator Shader is messed up (see picture). Why?
Tree creator , palm trees
Changing Tree LOD level changes all textures to Pink