Jump to content

WorldSpaceCanvas2D attach to mesh


Koroldev
 Share

Recommended Posts

Hi everyone! And question again :) How I can attach the WorldSpaceCanvas2D to some mesh on my scene? Something like WorldSpaceCanvas2D.parent = myMesh. Or I need changing a canvas position and rotation in every frame? Then next question, how I can change the WorldSpaceCanvas2D position and rotation in worldSpace? Thank!

Link to comment
Share on other sites

Hello,

The doc entry point is here: http://doc.babylonjs.com/overviews/canvas2d_home you'll find plenty of playgrounds at the bottom.

In the first time tutorial, there's a section about WorldSpaceCanvas and their relationship with 3D Scene Nodes  http://doc.babylonjs.com/tutorials/using_the_canvas2d#world-space-canvas

Finally I think this PG (also referenced in the doc entry point) will do what you're looking for: http://babylonjs-playground.com/#1KYG17#1

 

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