Linking Two GUI Objects together with a Line?

https://www.babylonjs-playground.com/#U5URZC#21

Good afternoon everyone! I hope everyone is well.

I have a little question that I have been looking the answer for - but I’m coming up trumps.

Is it possible to connect both ends of a line to two separate 2D GUIs?

I know examples show the set up in of a line connecting from one GUI to a 3D mesh but is there any substitute for GUI?

I was messing around with the x1,y1 to match up with the other GUI but it shifts when the browser window is altered.

Thank you all,
Mark

Is this PG https://www.babylonjs-playground.com/#XCPP9Y#39 from How to let GUI line link 2 meshes - Questions & Answers - HTML5 Game Devs Forum of any help?

Hey @JohnK - sadly not as it assumes the end GUI ultimately attaches to the mesh. It would need to link to another GUI that is imposed on the screen.

looks like multiline can help :slight_smile:
https://www.babylonjs-playground.com/#H03KNW#8

Hope this helps out someone in the future.

1 Like