Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Vector3.up

Switch to Manual
public static var up: Vector3;

Description

Shorthand for writing Vector3(0, 1, 0).

	transform.position += Vector3.up * Time.deltaTime;