The scale of the transform relative to the parent.
#pragma strict // Widen the object by 0.1 transform.localScale += new Vector3(0.1F, 0, 0);
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void Example() { // Widen the object by 0.1 transform.localScale += new Vector3(0.1F, 0, 0); } }
Did you find this page useful? Please give it a rating: