浏览代码

Added a note to .target, related to #5555

RunninglVlan 9 年之前
父节点
当前提交
f3e774162e
共有 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>