SpotLight.Direction Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.