InputCollector
A top-layer component that collects all input in the current layer.
Usage
In order to create responsive components, it is essential that there is a certain amount of leniency in the way input is handled.
The InputCollector
component allows you to collect all input even when not hovering the component through a top-layer TextButton
that sinks all input.
This is especially useful for components like sliders, where the user might drag the mouse outside of the component.
This component does not provide any visual instances and cleans itself up when it's ReferenceObject
is destroyed. As such, there is no need to assign it to a variable or clean it up manually.
Properties
ReferenceObject
ReferenceObject
The equivalent of the first parameter in a lot of other top-layer components. This is used to determine the layer to place the InputCollector
in and the component to watch for destruction.
Type
Code block has not loaded. An error may have occurred.
Visible
Visible
Whether the InputCollector
is visible or not. Be careful with this, as this being true
means all input on the layer is collected.
Type
Code block has not loaded. An error may have occurred.
OnHover
OnHover
Type
Code block has not loaded. An error may have occurred.
OnMouseButton1Changed
OnMouseButton1Changed
Type
Code block has not loaded. An error may have occurred.
OnClick
OnClick
Type
Code block has not loaded. An error may have occurred.
OnMouseMove
OnMouseMove
Type
Code block has not loaded. An error may have occurred.
OnInputBegan
OnInputBegan
Type
Code block has not loaded. An error may have occurred.
OnInputEnded
OnInputEnded
Type
Code block has not loaded. An error may have occurred.
OnInputChanged
OnInputChanged
Type
Code block has not loaded. An error may have occurred.