right
Shorthand for writing Vector3(1, 0, 0).
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static Vector3 right { get; }
Examples
using UnityEngine;using System.Collections;public class ExampleClass : MonoBehaviour{ void Example() { transform.position += Vector3.right * Time.deltaTime; }}