I’m trying to scale an object that is a child of the button I am clicking, using the transform.Find code.
I have used very similar code to run scripts attached to the same object I am trying to scale now, so I could probably put the scale script in the object itself and just run it, but I was wondering if there was a simple reason why my code doesn’t work as is:
new Transform test = transform.Find("Pushpin");
test.localScale += Vector3(0.1,0,0);