Select Transform Gizmo

Hello, I was searching for this topic here, but no results.
Is there any example how to add Select Transform Gizmo to the objects for web browser? I have foungd this example https://www.youtube.com/watch?v=U3tnjOIJJ-s including script packages, but after implementing in my scene, it doesnt workk after needle export. Any workaround tips?

Original Post on Discord

by user 869976161550217286

I need this for example to rotate with chair wlile placing in browser

by user 869976161550217286

Im not sure i understand what you mean here. Can you try to explain a bit more?

I want to extend your Sandbox scene. I want to drag/copy for example chair. And want to place it in my house. But I need to rotate the chair of 180 degrees. In browser. So I wanted to add C# script. Which can show transform giymo of selected object and zou can manipulate with this object

by user 869976161550217286

Why do you not add and place it in Unity directly?

Or do you want to make it configureable?

yes exactly

by user 869976161550217286

same what we have now, but also with possibility of rotation of object.

by user 869976161550217286

So I thought I will just use this C# from video, but I am affraid it have to be writen is TzpeScript…

by user 869976161550217286

Yes it has. Threejs has a simple component for it: three.js docs

https://threejs.org/examples/?q=transform#misc_controls_transform

yes thats is, but how to implement this in unity scene. I can write just .js script and add this to the object?

by user 869976161550217286

Yes you write component in typescript and add it exactly

TypeScript is imposible for me but JS… can work you are writing: Runtime code for Needle Engine is written in TypeScript (recommended) or JavaScript.

by user 869976161550217286

So I can try in JS also?

by user 869976161550217286

Typescript is recommended

you can try js

We’re having a builtin component for that. Seemed like it was a bit broken. Im just repairing it here so you could perhaps just use that (will release in ~ 15 minutes)

20230502-131039_Minimal_-_Google_Chrome-logo.mp4
image.png

wow great, trying to write it now but you will be much faster ofcourse

by user 869976161550217286