Vector3(0, 0, 0)的简码。" />Vector3.zero 参数0_unity3d脚本手册|游戏脚本制作教程-游戏蛮牛

Vector3.zero 参数0

static var zero : Vector3

Description描述

Shorthand for writing Vector3(0, 0, 0)

Vector3(0, 0, 0)的简码。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		transform.position = Vector3.zero;
	}
}
transform.position = Vector3.zero;
Page last updated: 2011-1-9