How do i change the inspector float step of specific nodes with hard-coded float step counts?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By V1Ultrakill

I want to change the radius of a circleshape2d in the inspector to 0.1, but the step count seems to be 0.5 so it keeps rounding my 0.1 down to 0.01.

I did some digging online and apparently there’s a default step count you can change according to this github request, though changing the default step count doesn’t seem to change the step count for the circleshape2d’s radius, so I suspect it’s hard-coded.

I’d like to be able to change this step count since I need to work with really small collisionshape2ds, but I’m not too experienced with the engine, and there doesn’t seem to be anything to change hardcoded float step counts inside the settings.

Do I have to use plugins or modify some line of code somewhere to change it?

:bust_in_silhouette: Reply From: V1Ultrakill

Alright I fixed it by making a custom plugin that overloads the insepctor’s float setter for shapes. It’s kind of janky and i’ll improve it, but it works well right now.

I guess that’s using EditorInspectorPlugin?

idbrii | 2022-12-21 22:03