Unity - Scripting API: Ray2D.direction
Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Ray2D.direction

var direction: Vector2;
Vector2 direction;
direction as Vector2

Description

The direction of the ray in world space.

See Also: origin.