Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » HELP » Help (General) » Pinch To Scale Issue

Pinch To Scale Issue

Go down  Message [Page 1 of 1]

1 Pinch To Scale Issue on Sun Dec 13, 2015 9:34 pm


Member [Lv. 0]
Member [Lv. 0]
Hello everyone ,

i have an issue with my pinch to scale script, on Reset button it should reset the size of the model in (2.5,2.5,2.5) which is the max value to scale, but it sets this value just for a few seconds and than it goes back to minimum size !!!

Can anyone Help me with this ? I would be grateful Smile

This is the reset script :

using UnityEngine;
using System.Collections;

public class PinchToScale : MonoBehaviour {

float scaleAmount=1f;
Vector3 baseScale = new Vector3(2.5f,2.5f,2.5f);
void OnClick()

GameObject go = GameObject.Find ("Animals");
TBPinchToScale maxScaleAmount = go.GetComponent<TBPinchToScale> ();

maxScaleAmount.minScaleAmount = 1.0f;
maxScaleAmount.transform.localScale = new Vector3(2.5f,2.5f,2.5f);



View user profile

2 Re: Pinch To Scale Issue on Thu Dec 17, 2015 5:48 pm


Could you please provide the TBPinchToScale script?

View user profile

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum