- Home /
Is it ossible to do a squash and stretch effect using iTween on GUI Buttons?
I'm trying to make a menu button where the user clicks on the button, it drops down and when it reaches the target position, it will end being squashed and stretched like a ball animation.
Answer by pixelplacement · Jan 11, 2011 at 05:31 AM
Yes.
You would need to use GUIUtility.ScaleAroundPivot() and 2 iTween.ValueTo() methods (one to ease out and one to ease in).
Hi PixelPlacement, how do we use iTween.ValueTo with the values from GUIUtility?
I put a few examples for this in the examples page: http://itween.pixelplacement.com/examples.php
Your answer
Follow this Question
Related Questions
How to achieve squash and stretch on characters similar to 3D Mario games 0 Answers
How I can stretch texture with GUI.DrawTextureWithTexCoords ? 1 Answer
Is it possible to stretch a part of texture in GUI ? 0 Answers
unity3d new UI - spacing in Scrollable items does not scale proportionally. 1 Answer
New Gui and iTween 1 Answer