Added Button Events page stuff. Needs work |
added some links |
||
Line 24: | Line 24: | ||
=== Global: IButton (IButton)[Global] === | === Global: IButton (IButton)[Global] === | ||
[[IButton]] to read events from. | |||
== Outputs == <!--T:3--> | == Outputs == <!--T:3--> | ||
Line 52: | Line 52: | ||
The point in global transform in the world the user's cursor is at on the surface of the button during any of this node's Impulses | The point in global transform in the world the user's cursor is at on the surface of the button during any of this node's Impulses | ||
Example: Useful for a splash of particles where the user clicked like a click effect | Example: Useful for a splash of particles where the user clicked like a click effect | ||
Also see: [[Coordinate spaces]] | |||
=== LocalPoint(float3) === | === LocalPoint(float3) === | ||
The point in UIX pixels within the button's local [[RectTransform (Component)|RectTransform]] the user's cursor is at during any of this node's Impulses | The point in UIX pixels within the button's local [[RectTransform (Component)|RectTransform]] the user's cursor is at during any of this node's Impulses | ||
Also see: [[Coordinate spaces]] | |||
=== NormalizedPoint(float2) === | === NormalizedPoint(float2) === | ||
The point from 0 to 1 in both the x and y channels within the button's local [[RectTransform (Component)|RectTransform]] the user's cursor is at during any of this node's Impulses. | The point from 0 to 1 in both the x and y channels within the button's local [[RectTransform (Component)|RectTransform]] the user's cursor is at during any of this node's Impulses. | ||
Also see: [[Coordinate spaces]] |
Revision as of 18:13, 13 January 2024
Script error: The function "ProtoFlux" does not exist.
Inputs
Global: IButton (IButton)[Global]
IButton to read events from.
Outputs
Pressed (Impulse)
Sends an Impulse when the button in Global: IButton is pressed down
Pressing (Impulse)
Sends an Impulse every game update while the button in Global: IButton is being held down
Released (Impulse)
Sends an Impulse when the button in Global: IButton is released
HoverEnter (Impulse)
Sends an Impulse a cursor/laser is brought on top of the button in Global: IButton (TODO: Does this include touching? (Ex: Physical buttons))
HoverStay (Impulse)
Sends an Impulse every game update while the button in Global: IButton is being currently being hovered over (TODO: Does this include touching? (Ex: Physical buttons))
HoverLeave (Impulse)
Sends an Impulse a cursor/laser leaves being on top of the button in Global: IButton (TODO: Does this include touching? (Ex: Physical buttons))
Source (Component)
The source of the button press (TODO: Is this a interaction laser and/or tip touch source?)
GlobalPoint (float3)
The point in global transform in the world the user's cursor is at on the surface of the button during any of this node's Impulses Example: Useful for a splash of particles where the user clicked like a click effect Also see: Coordinate spaces
LocalPoint(float3)
The point in UIX pixels within the button's local RectTransform the user's cursor is at during any of this node's Impulses Also see: Coordinate spaces
NormalizedPoint(float2)
The point from 0 to 1 in both the x and y channels within the button's local RectTransform the user's cursor is at during any of this node's Impulses. Also see: Coordinate spaces