Is there any way to get the tranform scale type?

I’m looking for a function give me the current scale type of the component.

Something like this:


i mean, i want to know if the scale is relative or world.

i can not find it.

Thank you so much!!