Draw a text on ribbon in ReactBabylon js

Hii,

https://codesandbox.io/s/codesandbox-react-tsx-forked-co1v70?file=/src/App.tsx

In this code, I created a ribbon and dragged it with gizmo. In React Babylon JS, how can I add a dynamic text to this ribbon?

Hello,

You can draw text using a variety of methods, like Dynamic Textures Dynamic Textures | Babylon.js Documentation (babylonjs.com) and the Babylon GUI :slight_smile: The Babylon GUI | Babylon.js Documentation (babylonjs.com)

2 Likes

Thankyou .
https://playground.babylonjs.com/#XCPP9Y#16

In this playground, linkWithMesh property used for attaching text with sphere .
How reactbaylonjs makes use of this property ?

react-babylonjs is just a wrapper around Babylon so it works exactly the same :slight_smile: There’s an example of linkWithMesh usage in the official react-babylonjs docs https://brianzinn.github.io/react-babylonjs/examples/gui/gui-demo

1 Like