Jump to content

Can we link a GUI Control with a TransformNode?


Vorion
 Share

Recommended Posts

In the typescript it is explicitly an AbstractMesh, but I also tried in your PG and got an error:
h.getBoundingInfo is not a function.  I think it's from here:
https://github.com/BabylonJS/Babylon.js/blob/62400581618983fd2b089b0a32347074427c9961/gui/src/advancedDynamicTexture.ts#L343

That getBoundingInfo() method starts on AbstractMesh:
https://doc.babylonjs.com/classes/3.0/abstractmesh#getboundinginfo-rarr-boundinginfo-classes-3-0-boundinginfo-

That method is not available on Node (That AbstractMesh derives from).  Although, I don't see why it couldn't work for a Node.... the short answer is no.

edit: can you get away with an empty mesh what you are trying to do?

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