≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
how to get scene node parent?
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b][/b] wrote: Hi ssatguru, I don't think there is a direct way of doing that. You probably, should compose the structure of you project the other way somehow. If there is no other way, I would write a recursive search function like https://stackoverflow.com/a/9133680. The algorithm would be: 1. Pass node to the function (root node on 1st iteration); 2. Check if the root node has your child node - if yes return the node, if no: 3. Call the function for every child node. I'm also not sure how to match the nodes, since they can have the same names. I can, probably, come up with the exact implementation tonight, if you don't have another answer before that.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact