tiled
tiled copied to clipboard
Ability to lock individual objects
Locking individual objects can also come handy. Though setting visible to false works, but then, if the object is invisible no way to select or move it, without searching and selecting it from object layers.
Hmm, I think this would get too fiddly. Once #734 is implemented one could just move objects you want to have locked to a locked layer, right?
Yah, that would be just fine. Then There should be some shortcut (keys) to move objects to different layers and easily.
Is there still interest in this feature for Tiled? Now that scripting is becoming more integrated, the ability for scripts to create objects, then lock them so the user doesn't mess with them, could be quite useful. It sets up a situation where those objects are sorta "owned" by the script.
Of course the user could unlock them, but that's explicitly saying "I know better than the script". Right now, if a script wants to set up e.g. 4 objects adjacent to each other, and then keep them together as it moves them around, it's still possible for the user to totally mess that up by accidentally selecting an object.
@Phlosioneer I guess the script could put such objects in a locked layer, but in general I don't see any harm in supporting locking also at the object level. This should probably change the structure of the Objects view in a similar way as was done for the Layers view when locking was introduced (needing additional columns because we can no longer rely on the checkbox state of the single column). That would be a welcome change for consistency as well anyway.
+1 for locking single Objects in ObjectLayers! :) Wow the original suggestion for that is more than 7 years old :D