Correct me if I’m wrong but doesn’t BasePart.Locked property exist for this purpose? I’m not sure why CanQuery should behave the same way in studio in full release when another property exist for that very specific reason.
I’m so thankful this is happening! I had to make functions that would filter out unsolid parts (which isn’t too complicated, but still needs the extra code), but now I can just turn off a property and have a simple raycast! Thanks!
Ah right, the answer’s in the OP lol. I guess we’re to take it as they all need to be set to off to see a minor performance boost, so it’s probably worth going through all of the nonessential parts in a game and doing so in the future.
This is one pretty useful feature for optimizing background elements you want to be completely be ignored.
I love how Roblox has lately worked more on updates like raycast and other optimizations, they are so much needed, they make the engine so much faster on older devices or devices with limited power.
Locked does something slightly different: Clicking on something that’s locked will specifically act as though you clicked on nothing. Clicking on something that’s CanQuery = false will currently act as though you clicked on whatever lies beyond it.
This is something especially needed for plugins. Being able to disable selection for specific parts (while having the dragger raycast pass through) is a feature I’ve been waiting for.
I got excited about this beta, but since preventing selection is unintentional behaviour, I’m a little disappointed now.
In Part.Locked the raycast still hits the part, but it is just not selected. With the CanQuery the raycast itself will ignore the part, that means you will be able to select a part behind a part, you are not able to do that with Part.Locked.
So will this allow a part with Query set to false to not be clicked by the draggers in studio? I always would try to set transparent parts (such as ones just to block players from wandering where they shouldnt) as locked only to be blocked when trying to click parts through them. It was very annoying, so I stopped using lock, as it really served no purpose for me.