Inspector only allow 3 decimals for exported float number. How can I use numbers like 0.0000456?

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

I try to set my exported float variable to 0.0001 in the inspector and it gets rounded to 0. Can I somehow overwrite default float step or something?

:bust_in_silhouette: Reply From: Gluon

I dont get this issue, if I set a variable as 0.0001 and print it I get the output of 0.0001.

Are you sure you arent setting your variable to an int rather than a float? If you tried to apply 0.0001 to an int that would come out at 0.

If set in script there was no issue but at the inspector closest I could get to zero was 0.001. Above editor setting fixed it.

exslacker | 2022-11-26 09:04

:bust_in_silhouette: Reply From: jgodfrey

Just increase the default float step as required here:

Editor | Editor Settings | Interface | Inspector | Default Float Step

Thank you, that was the issue!

exslacker | 2022-11-26 09:00