summaryrefslogtreecommitdiff
path: root/doc/classes/VisibilityEnabler3D.xml
blob: 4614859a4487c7eabcdc7db465fe17a25af94f7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VisibilityEnabler3D" inherits="VisibilityNotifier3D" version="4.0">
	<brief_description>
		Enables certain nodes only when approximately visible.
	</brief_description>
	<description>
		The VisibilityEnabler3D will disable [RigidBody3D] and [AnimationPlayer] nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler3D itself.
		If you just want to receive notifications, use [VisibilityNotifier3D] instead.
		[b]Note:[/b] VisibilityEnabler3D 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 [Area3D] node as a child of a [Camera3D] node and/or [method Vector3.dot].
		[b]Note:[/b] VisibilityEnabler3D will not affect nodes added after scene initialization.
	</description>
	<tutorials>
	</tutorials>
	<methods>
	</methods>
	<members>
		<member name="enable_mode" type="int" setter="set_enable_mode" getter="get_enable_mode" enum="VisibilityEnabler3D.EnableMode" default="0">
		</member>
		<member name="enable_node_path" type="NodePath" setter="set_enable_node_path" getter="get_enable_node_path" default="NodePath(&quot;..&quot;)">
		</member>
	</members>
	<constants>
		<constant name="ENABLE_MODE_INHERIT" value="0" enum="EnableMode">
		</constant>
		<constant name="ENABLE_MODE_ALWAYS" value="1" enum="EnableMode">
		</constant>
		<constant name="ENABLE_MODE_WHEN_PAUSED" value="2" enum="EnableMode">
		</constant>
	</constants>
</class>