sbox-issues icon indicating copy to clipboard operation
sbox-issues copied to clipboard

Lock Transforms In Editor

Open bakscratch opened this issue 9 months ago • 5 comments

It would be nice to have the ability to lock transforms in the editor with a button or something like;

Image

Sometimes you want to lock a gameobject so you don't move it by accident.

bakscratch avatar Mar 12 '25 10:03 bakscratch

Does it need to lock only position but not rotation/scale or could it be a single lock for the entire gameobject? That way it can be a gameobject flag and you won't have the lock on every Vector3 and Rotation property inside of components.

yuberee avatar Mar 12 '25 10:03 yuberee

It could be in the same place as the Editor Only option, seeing a padlock next to scale makes me think of UE's uniform scaling lock

Image

Image

Jammie3d avatar Mar 12 '25 10:03 Jammie3d

Oh damn the inspector already has a lock icon, then maybe have it next to the transform's title? Or inside the three dots where you can switch from worldspace to localspace

yuberee avatar Mar 12 '25 10:03 yuberee

Inspector lock icon should be a pin, less confusing. I initially assumed the lock icon was a transform lock

Any objects with transforms locked would benefit from having a lock icon next to them in the hierarchy as well imo, especially if we prevent selecting locked GameObjects in the viewport.

JasonO3D avatar Nov 18 '25 11:11 JasonO3D

Something like this

Image

JasonO3D avatar Nov 18 '25 11:11 JasonO3D

Does the transform need to be locked or is it enough to just disable selecting the object within the scene like Unity? I would imagine you would want the later anyway for heavy scenes.

Image

andy013 avatar Dec 09 '25 17:12 andy013