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

Vector3.one 参数1

static var one : Vector3

Description描述

Shorthand for writing Vector3(1, 1, 1)

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

using UnityEngine;
using System.Collections;

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