Jump to content

GUI access to rectangle control


phaselock
 Share

Recommended Posts

I think the function is switching to _rootContainer, so it's not recursively going through the children hierarchy.  I haven't had my coffee yet today, though! :)

In this PG, I get access from the immediate child(panel) directly to 'cont1':
https://www.babylonjs-playground.com/#HETZDX#8
 

edit: it's the continue statement.  func() is not run on anything containing a .children property.

Link to comment
Share on other sites

Thanks, @brianzinn. I'm aware of using children[0] directly but my stackpanels are instances generated during runtime. I've given the stackpanels names but they are not directly referenceable in code like panel.children[0] does. If I can access the stackpanels in place of 'this._rootContainer', I can reach my rects. It's late over here, perhaps I can explain my use test in more depth tom. Thanks for the efforts and much appreciated, cheers !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...