Selection and Transform Gizmo at Runtime in Unity

Publicado el: 07 febrero 2023
en el canal de: DA LAB
6,717
89

Select a game object and show the transform handle gizmo to move, rotate and scale the object using the handle at runtime in Unity using C# script. It allows shifting between different modes of transformation and between local and world spaces using keyboard hotkeys.

Install the free package called RuntimeTransformHandle by Peter @sHTiF Stefcek. Below are links to the YouTube video from the BinaryEgo channel that explains it and the GitHub source:
   • Runtime Transform Handle for Unity.  
https://github.com/pshtif/RuntimeTran...

To install the package:
Unity Editor - Edit - Project Settings - Package Manager - Name: Shtif Registry - URL: http://package.binaryego.com:4873 - Scopes: com.shtif - Save.

Unity Editor - Window - Package Manager - Packages: My registries - Select Runtime Transform Handle - Install

Then, you can find the Runtime Transform Handle folder inside the Assets.


Add a Selectable tag and assign it to all objects you wish to be selectable.

GitHub link to SelectTransformGizmo code:
https://github.com/DA-LAB-Tutorials/Y...


If you get an error installing the package as a Scoped Registry, try the following:

Download the compressed [email protected] folder from the GitHub link below:
https://github.com/DA-LAB-Tutorials/Y...

Unzip the downloaded folder

In Unity Editor - Window - Package Manager - + Add Package from Disk - Select “package.json” inside the unzipped [email protected] folder and click Open


En esta página del sitio puede ver el video en línea Selection and Transform Gizmo at Runtime in Unity de Duración hora minuto segunda en buena calidad , que subió el usuario DA LAB 07 febrero 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 6,717 veces y le gustó 89 a los espectadores. Disfruta viendo!