Can anyone please explain how to change a property’s subtype
for a UI?
For example if I have a FloatProperty in a Panel representing a Property’s value and the value is rotation for one object and translation for another. I’d want to show the units °
and m
, respectively.
In the following posts, it seems the answer is that Property’s subtype can only be set at creation. Would I need to create a FloatProperty for every possible subtype and switch or can it be done more neatly with one property?
https://blender.stackexchange.com/questions/237819/how-change-stringproperty-subtype-with-a-button
Thank you!