Share via


SpotLight.Direction Property

Definition

The direction in which the light is pointing, specified relative to its CoordinateSpace Visual.

public:
 property float3 Direction { float3 get(); void set(float3 value); };
float3 Direction();

void Direction(float3 value);
public Vector3 Direction { get; set; }
var vector3 = spotLight.direction;
spotLight.direction = vector3;
Public Property Direction As Vector3

Property Value

Vector3 Vector3

float3

The direction in which the light is pointing, specified relative to its coordinate space Visual.

Examples

_spotLight.Direction = new Vector3(4, 10, 0); 

Remarks

SpotLight.Direction is relative to SpotLight.CoordinateSpace.

Applies to

See also