瀏覽代碼

Merge pull request #8049 from RunninglVlan/patch-2

Added a note to SpotLight.target, related to #5555
Mr.doob 9 年之前
父節點
當前提交
7a4f9c1e5b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      docs/api/lights/SpotLight.html

+ 2 - 1
docs/api/lights/SpotLight.html

@@ -70,7 +70,8 @@
 		<h3>[property:Object3D target]</h3>
 		<div>
 			Spotlight focus points at target.position.<br />
-			Default position — *(0,0,0)*.
+			Default position — *(0,0,0)*.<br />
+			*Note*: Currently for target property to work properly, it must be part of the [page:Scene scene], e.g. this will help: <code>scene.add( light.target )</code>
 		</div>
 	
 		<h3>[property:Float intensity]</h3>