XDracam / unity-corelibrary

Collection of classes and extension methods that make life with Unity3D more comfortable
MIT License
15 stars 3 forks source link

Set global scale of transform #60

Open n3roxis opened 4 years ago

n3roxis commented 4 years ago

E.g. like this transform.globalScale = Vector3.one; Currently we can only set the local scale

XDracam commented 4 years ago

This is difficult, since there are no extension properties in C# (yet). I could do transform.SetGlobalScale(Vector3.one) but I am not sure about that yet. Seems rather hacky. Will consider.