Jump to content

BABYLON.GUI StackPanel and Buttons


TheGecko
 Share

Recommended Posts

Question - I've encountered some unexpected behavior when using both a StackPanel and Button in the Babylon.GUI package. I've created a playground (https://www.babylonjs-playground.com/#V3R633) which duplicates the issues.

I create a StackPanel, and add a button to it, which works fine: I click it, and I can see it is responding to that. I then add a TextBlock. but then the button appears not to be responding to the event. In my actual code, I have a Observable (via onPointerDownObservable.add), which fails to occur: in the playground code, you can see the button fail to trigger the default action instead.

Any ideas what I've down wrong?

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...