Documentation
¶
Overview ¶
Package VisibleOnScreenEnabler2D provides methods for working with VisibleOnScreenEnabler2D object instances.
Index ¶
- type Advanced
- type Any
- type EnableMode
- type Instance
- func (self Instance) AsCanvasItem() CanvasItem.Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsNode2D() Node2D.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsVisibleOnScreenEnabler2D() Instance
- func (self Instance) AsVisibleOnScreenNotifier2D() VisibleOnScreenNotifier2D.Instance
- func (self Instance) EnableMode() gdclass.VisibleOnScreenEnabler2DEnableMode
- func (self Instance) EnableNodePath() string
- func (self Instance) SetEnableMode(value gdclass.VisibleOnScreenEnabler2DEnableMode)
- func (self Instance) SetEnableNodePath(value string)
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type EnableMode ¶
type EnableMode = gdclass.VisibleOnScreenEnabler2DEnableMode //gd:VisibleOnScreenEnabler2D.EnableMode
const ( /*Corresponds to [constant Node.PROCESS_MODE_INHERIT].*/ EnableModeInherit EnableMode = 0 /*Corresponds to [constant Node.PROCESS_MODE_ALWAYS].*/ EnableModeAlways EnableMode = 1 /*Corresponds to [constant Node.PROCESS_MODE_WHEN_PAUSED].*/ EnableModeWhenPaused EnableMode = 2 )
type Instance ¶
type Instance [1]gdclass.VisibleOnScreenEnabler2D
[VisibleOnScreenEnabler2D] contains a rectangular region of 2D space and a target node. The target node will be automatically enabled (via its [member Node.process_mode] property) when any part of this region becomes visible on the screen, and automatically disabled otherwise. This can for example be used to activate enemies only when the player approaches them. See [VisibleOnScreenNotifier2D] if you only want to be notified when the region is visible on screen. [b]Note:[/b] [VisibleOnScreenEnabler2D] uses the render culling code to determine whether it's visible on screen, so it won't function unless [member CanvasItem.visible] is set to [code]true[/code].
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsCanvasItem ¶
func (self Instance) AsCanvasItem() CanvasItem.Instance
func (Instance) AsVisibleOnScreenEnabler2D ¶
func (Instance) AsVisibleOnScreenNotifier2D ¶
func (self Instance) AsVisibleOnScreenNotifier2D() VisibleOnScreenNotifier2D.Instance
func (Instance) EnableMode ¶
func (self Instance) EnableMode() gdclass.VisibleOnScreenEnabler2DEnableMode
func (Instance) EnableNodePath ¶
func (Instance) SetEnableMode ¶
func (self Instance) SetEnableMode(value gdclass.VisibleOnScreenEnabler2DEnableMode)