LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

Ray.direction

public Vector3 direction;

Description

The direction of the ray.

Direction is always a normalized vector. If you assign a vector of non unit length, it will be normalized.