Version: 2017.3
public Vector3 localScale ;

描述

相对于父对象的变换缩放。

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); } }