BasePlayerGui
BasePlayerGui is an abstract class which the GUI drawing storage classes
inherit from.
This class is not creatable. Instances of this class cannot be created with Instance.new.
| Memory category | Instances |
|---|
Member index 2
Description
BasePlayerGui is an abstract class that all GUI drawing storage classes
inherit from.
History 7
- 648 Change ReturnType of GetGuiObjectsInCircle from Objects to Instances
- 648 Change ReturnType of GetGuiObjectsAtPosition from Objects to Instances
- 462 Change ThreadSafety of GetGuiObjectsInCircle from to Unsafe
- 462 Change ThreadSafety of GetGuiObjectsAtPosition from to Unsafe
- 451 Add GetGuiObjectsInCircle
- 366 Add GetGuiObjectsAtPosition
- 47 Add BasePlayerGui
Members 2
GetGuiObjectsAtPosition
| Parameters (2) | ||
|---|---|---|
| x | int | |
| y | int | |
| Returns (1) | ||
| Instances | ||
Takes a screen position and returns a list of all the GuiObject instances which are occupying that screen position, sorted in the order they appear on screen from top to bottom as the first and last index, respectively. The main use case is to get GUI objects under the player's mouse or touch inputs to allow for selection or highlighting.
Since the child classes of BasePlayerGui inherit this function, it can be fired by container classes such as PlayerGui and StarterGui.
| Thread safety | Unsafe |
|---|
History 3
- 648 Change ReturnType of GetGuiObjectsAtPosition from Objects to Instances
- 462 Change ThreadSafety of GetGuiObjectsAtPosition from to Unsafe
- 366 Add GetGuiObjectsAtPosition
GetGuiObjectsInCircle
| Parameters (2) | ||
|---|---|---|
| position | Vector2 | |
| radius | float | |
| Returns (1) | ||
| Instances | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 3
- 648 Change ReturnType of GetGuiObjectsInCircle from Objects to Instances
- 462 Change ThreadSafety of GetGuiObjectsInCircle from to Unsafe
- 451 Add GetGuiObjectsInCircle