Script language:

  • JS
  • C#
  • Boo
Script language

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

Suggest a change

Vector3.up

static var up: Vector3;
static Vector3 up;
static up as Vector3

Description

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

	transform.position += Vector3.up * Time.deltaTime;
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Example() {
        transform.position += Vector3.up * Time.deltaTime;
    }
}
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Example() as void:
		transform.position += (Vector3.up * Time.deltaTime)

Your name (optional):
Your email (optional):
Please write your suggestion here: