Bagikan melalui


SpotLight.Direction Properti

Definisi

Arah di mana cahaya menunjuk, ditentukan relatif terhadap Visual CoordinateSpace-nya.

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

Nilai Properti

Vector3 Vector3

float3

Arah di mana cahaya menunjuk, ditentukan relatif terhadap ruang koordinat Visual.

Contoh

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

Keterangan

SpotLight.Direction relatif terhadap SpotLight.CoordinateSpace.

Berlaku untuk

Lihat juga