≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Nesting scene nodes
Posted by:
(you are not logged in)
Enter the missing letter in: "I?ternational"
(you are not logged in)
Text:
[quote][b][/b] wrote: Hi debuggeek, Did you figure this one out already? I think I can answer, but someone else chime in if I'm off the mark. Like you found, "parent" nodes and "children" nodes need to be added to the scene.RootNode in descending order because the .addChild method sets the this.scene property of the child node to be that of the parent. The error you describe shows as "TypeError: this.scene is null" in FireFox and it's coming from trying to render a child node that was added to a parent that didn't have a "this.scene" property. The parent's was null when you added the child, so (unless you set it another way) it's null for the child now too. Other than that, a parent SceneNode works as expected to set the visibility (or position, or scale, etc) of child nodes. And child nodes can be then be parent nodes for more child nodes...[/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