Shape of the button, 'rect', 'roundrect', or 'sprite'
X position
Y position
Width
Height
Radius
Fill Color or Image path of the button
Text instance to render on top of the button
Game instance
Scene instance
What the GameObject collides with
X position
Y position
Width of the bounds
Height of the bounds
The target velocity
The value to increase the velocity by
The value to decrease the velocity by
The Vector2 to add to the velocity by
PhysicsBody to detach
PhysicsBody to detach from
PhysicsBody to check their hitbox with
Listener Type, type of event
Listener Type, type of event
Callback function, called on event
Scale Vector2, x is width, y is height
Fill color
Scale of the gameobject, can be a number to change the radius
The type of the PhysicsBody, 'KinematicBody' | 'RigidBody' | 'StaticBody'
The axis to set the velocity of
The value to set the velocity axis as, in pixels per second
The value to set the velocity axis as, in pixels per second
The value to set the velocity.y as, in pixels per second
What to set the visible property to
Generated using TypeDoc
Creates a DuckEngine Button
The Button Class. Acts like a Button
1.0.0