- Home /
Resize GameObject and Keep it aligned to the left
I know you can use
transform.localScale = new Vector3(X,X,X);
to resize an object, but this is anchored off the center point and so the object is changed from both sides.
I want to resize an object but still have it left aligned. I know you can make an object a child to create a custom pivot but that doesn't help with resizing.
Any ideas ?
http://wiki.unity3d.com/index.php?title=SetPivot
This is what you need. This should be a part of Unity.
Okay ... maybe this isn't the answer. In a small demo project it worked fine, but when I try to use this in game project it changed the pivot of EVERY single cube and not just the object I wanted to change.
Your answer
Follow this Question
Related Questions
How to shorten/extend an object? 2 Answers
Resize object in runtime 1 Answer
Transform position from end of gameObject 0 Answers
Particle Scaling 4 Answers
Resize Texture2D comes out grey 2 Answers