UGUI Button expand library.
UGUI Button expand library.
Use it just like Button in UGUI!
Add this script to your Button object, then init with code:
PositionTransformer mPositionTransformer;
void Start () {
mPositionTransformer.init (10, PositionTransformer.TRANSFORM_DIRECTION.Y_AXIS);
}
NOTE: If you want to use this in ScrollView, use ScrollviewPositionTransformer
to replace PositionTransformer
.
Enjoy it😄!
If you have any questions, contact me: lujun.byte#gmail.com.