C# how do I return the scale values of an object?

After I figured out about transform.position.x, I had thought there would be some kind of a transform.scale.x

But I don’t see one.

Is there a way to return this value? And if so how would I go about doing it?

print(transform.localScale.x);

Thanks it works!

You have to be careful since it’s local scale. Position is world position. You can use lossyscale but it’s not accurate if you rotate your parent when you have a scaled child.