Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: col000r on June 15, 2016, 10:35:06 AM

Title: Add DataNode to DataNode?
Post by: col000r on June 15, 2016, 10:35:06 AM
Is there a way to add DataNodes to other DataNodes as values?
If I use SetHierarchy to create the whole DataNode I can then iterate through the entire thing and get DataNodes for all my branches and iterate through those, BUT if I create individual DataNodes and then add those to the main DataNode (node.AddChild( "blah", otherNode ) this doesn't work. What am I doing wrong?
Title: Re: Add DataNode to DataNode?
Post by: ArenMook on June 16, 2016, 04:38:53 AM
Yes. DataNode.ReplaceChild.
Title: Re: Add DataNode to DataNode?
Post by: col000r on June 17, 2016, 08:40:08 AM
Thank you very much!