浏览代码

Merge pull request #55834 from lawnjelly/vis_notifier_docs

Rémi Verschelde 3 年之前
父节点
当前提交
48baffb182
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      doc/classes/VisibilityEnabler.xml
  2. 1 1
      doc/classes/VisibilityNotifier.xml

+ 1 - 1
doc/classes/VisibilityEnabler.xml

@@ -6,7 +6,7 @@
 	<description>
 	<description>
 		The VisibilityEnabler will disable [RigidBody] and [AnimationPlayer] nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler itself.
 		The VisibilityEnabler will disable [RigidBody] and [AnimationPlayer] nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler itself.
 		If you just want to receive notifications, use [VisibilityNotifier] instead.
 		If you just want to receive notifications, use [VisibilityNotifier] instead.
-		[b]Note:[/b] VisibilityEnabler uses an approximate heuristic for performance reasons. It doesn't take walls and other occlusion into account. The heuristic is an implementation detail and may change in future versions. If you need precise visibility checking, use another method such as adding an [Area] node as a child of a [Camera] node and/or [method Vector3.dot].
+		[b]Note:[/b] VisibilityEnabler uses an approximate heuristic for performance reasons. It doesn't take walls and other occlusion into account (unless you are using [Portal]s). The heuristic is an implementation detail and may change in future versions. If you need precise visibility checking, use another method such as adding an [Area] node as a child of a [Camera] node and/or [method Vector3.dot].
 		[b]Note:[/b] VisibilityEnabler will not affect nodes added after scene initialization.
 		[b]Note:[/b] VisibilityEnabler will not affect nodes added after scene initialization.
 	</description>
 	</description>
 	<tutorials>
 	<tutorials>

+ 1 - 1
doc/classes/VisibilityNotifier.xml

@@ -6,7 +6,7 @@
 	<description>
 	<description>
 		The VisibilityNotifier detects when it is visible on the screen. It also notifies when its bounding rectangle enters or exits the screen or a [Camera]'s view.
 		The VisibilityNotifier detects when it is visible on the screen. It also notifies when its bounding rectangle enters or exits the screen or a [Camera]'s view.
 		If you want nodes to be disabled automatically when they exit the screen, use [VisibilityEnabler] instead.
 		If you want nodes to be disabled automatically when they exit the screen, use [VisibilityEnabler] instead.
-		[b]Note:[/b] VisibilityNotifier uses an approximate heuristic for performance reasons. It doesn't take walls and other occlusion into account. The heuristic is an implementation detail and may change in future versions. If you need precise visibility checking, use another method such as adding an [Area] node as a child of a [Camera] node and/or [method Vector3.dot].
+		[b]Note:[/b] VisibilityNotifier uses an approximate heuristic for performance reasons. It doesn't take walls and other occlusion into account (unless you are using [Portal]s). The heuristic is an implementation detail and may change in future versions. If you need precise visibility checking, use another method such as adding an [Area] node as a child of a [Camera] node and/or [method Vector3.dot].
 	</description>
 	</description>
 	<tutorials>
 	<tutorials>
 	</tutorials>
 	</tutorials>