VisibleOnScreenNotifier3D
继承: VisualInstance3D
< Node3D
< Node
< Object
A box-shaped region of 3D space that detects whether it is visible on screen.
描述
VisibleOnScreenNotifier3D represents a box-shaped region of 3D space. When any part of this region becomes visible on screen or in a Camera3D
's view, it will emit a screen_entered
signal, and likewise it will emit a screen_exited
signal when no part of it remains visible.
If you want a node to be enabled automatically when this region is visible on screen, use VisibleOnScreenEnabler3D
.
Note: VisibleOnScreenNotifier3D uses an approximate heuristic that doesn't take walls and other occlusion into account, unless occlusion culling is used. It also won't function unless Node3D.visible
is set to true
.
属性
方法
bool | is_on_screen ( ) const1 |
信号
screen_entered ( )
Emitted when the VisibleOnScreenNotifier3D enters the screen.
screen_exited ( )
Emitted when the VisibleOnScreenNotifier3D exits the screen.
属性说明
AABB
aabb = AABB(-1, -1, -1, 2, 2, 2)
The VisibleOnScreenNotifier3D's bounding box.
方法说明
Returns true
if the bounding box is on the screen.
Note: It takes one frame for the VisibleOnScreenNotifier3D's visibility to be assessed once added to the scene tree, so this method will always return false
right after it is instantiated.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。