GuiObjectクラス
ひとことで言うと
GuiObjectは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):An abstract class for all 2D user interface objects.
クラスの関係
受け継いでいるクラス:Object → Instance → GuiBase → GuiBase2d → GuiObject
このクラスを受け継ぐクラス:CanvasGroup、Frame、GuiButton、GuiLabel、InputActionLabel、ScrollingFrame、TextBox、TextChannelWindow、VideoDisplay、VideoFrame、ViewportFrame
プロパティ(26)
| 名前と書き方 | 説明 |
|---|---|
ActiveGuiObject.Active: boolean | Determines whether this UI element sinks input. |
AnchorPointGuiObject.AnchorPoint: Vector2 | Determines the origin point of a GuiObject, relative to its absolute size. |
AutomaticSizeGuiObject.AutomaticSize: AutomaticSize | Determines whether resizing occurs based on child content. |
BackgroundColor3GuiObject.BackgroundColor3: Color3 | Determines the GuiObject background color. |
BackgroundTransparencyGuiObject.BackgroundTransparency: float | Determines the transparency of the GuiObject background and border. |
BorderColor3GuiObject.BorderColor3: Color3 | Determines the color of the GuiObject border. |
BorderModeGuiObject.BorderMode: BorderMode | Determines in what manner the GuiObject border is laid out relative to its dimensions. |
BorderSizePixelGuiObject.BorderSizePixel: int | Determines the pixel width of the GuiObject border. |
ClipsDescendantsGuiObject.ClipsDescendants: boolean | Determines if descendant Class.GuiObject|GuiObjects outside of the bounds of a parent GUI element should render. |
GuiStateGuiObject.GuiState: GuiState | Determines whether the player's mouse is being actively pressed on the GuiObject or not. |
InputSinkGuiObject.InputSink: InputSink | Controls whether, and how, the GuiObject sinks input that occurs over it. |
InteractableGuiObject.Interactable: boolean | Determines whether the GuiButton can be interacted with or not, or if the Enum.GuiState|GuiState of the GuiObject is changing or not. |
LayoutOrderGuiObject.LayoutOrder: int | Controls the sort order of the GuiObject when used with a UIGridStyleLayout. |
NextSelectionDownGuiObject.NextSelectionDown: GuiObject | Sets the GuiObject which will be selected when the gamepad selector is moved downward. |
NextSelectionLeftGuiObject.NextSelectionLeft: GuiObject | Sets the GuiObject which will be selected when the gamepad selector is moved to the left. |
NextSelectionRightGuiObject.NextSelectionRight: GuiObject | Sets the GuiObject which will be selected when the gamepad selector is moved to the right. |
NextSelectionUpGuiObject.NextSelectionUp: GuiObject | Sets the GuiObject which will be selected when the gamepad selector is moved upward. |
PositionGuiObject.Position: UDim2 | Determines the pixel and scalar position of the GuiObject. |
RotationGuiObject.Rotation: float | Determines the number of degrees by which the GuiObject is rotated. |
SelectableGuiObject.Selectable: boolean | Determine whether the GuiObject can be selected by a gamepad. |
SelectionImageObjectGuiObject.SelectionImageObject: GuiObject | Overrides the default selection adornment used for gamepads. |
SelectionOrderGuiObject.SelectionOrder: int | The order of Class.GuiObject|GuiObjects selected by the gamepad UI selection. |
SizeGuiObject.Size: UDim2 | Determines the pixel and scalar size of the GuiObject. |
SizeConstraintGuiObject.SizeConstraint: SizeConstraint | Sets the Class.GuiObject.Size|Size axes that the GuiObject will be based on, relative to the size of its parent. |
VisibleGuiObject.Visible: boolean | Determines whether the GuiObject and its descendants will be rendered. |
ZIndexGuiObject.ZIndex: int | Determines the order in which a GuiObject renders relative to others. |
イベント(16)
| 名前と書き方 | 説明 |
|---|---|
InputBeganGuiObject.InputBegan(input: InputObject) | Fired when a user begins interacting via a Human-Computer Interface device (Mouse button down, touch begin, keyboard button down, etc). |
InputChangedGuiObject.InputChanged(input: InputObject) | Fired when a user changes how they're interacting via a Human-Computer Interface device (Mouse button down, touch begin, keyboard button down, etc). |
InputEndedGuiObject.InputEnded(input: InputObject) | Fired when a user stops interacting via a Human-Computer Interface device (Mouse button down, touch begin, keyboard button down, etc). |
MouseEnterGuiObject.MouseEnter(x: int, y: int) | Fires when a user moves their mouse into a GUI element. |
MouseLeaveGuiObject.MouseLeave(x: int, y: int) | Fires when a user moves their mouse out of a GUI element. |
MouseMovedGuiObject.MouseMoved(x: int, y: int) | Fires whenever a user moves their mouse while it is inside a GUI element. |
MouseWheelBackwardGuiObject.MouseWheelBackward(x: int, y: int) | Fires when a user scrolls their mouse wheel back when the mouse is over a GUI element. |
MouseWheelForwardGuiObject.MouseWheelForward(x: int, y: int) | Fires when a user scrolls their mouse wheel forward when the mouse is over a GUI element. |
SelectionGainedGuiObject.SelectionGained(inputDirection: GuiNavigationDirection) | Fired when the GuiObject is being focused on with the Gamepad selector. |
SelectionLostGuiObject.SelectionLost(inputDirection: GuiNavigationDirection) | Fired when the Gamepad selector stops focusing on the GuiObject. |
TouchLongPressGuiObject.TouchLongPress(touchPositions: Array, state: UserInputState) | Fires when the player starts, continues and stops long-pressing the UI element. |
TouchPanGuiObject.TouchPan(touchPositions: Array, totalTranslation: Vector2, velocity: Vector2, state: UserInputState) | Fires when the player moves their finger on the UI element. |
TouchPinchGuiObject.TouchPinch(touchPositions: Array, scale: float, velocity: float, state: UserInputState) | Fires when the player performs a pinch or pull gesture using two fingers on the UI element. |
TouchRotateGuiObject.TouchRotate(touchPositions: Array, rotation: float, velocity: float, state: UserInputState) | Fires when the player performs a rotation gesture using two fingers on the UI element. |
TouchSwipeGuiObject.TouchSwipe(swipeDirection: SwipeDirection, numberOfTouches: int) | Fires when the player performs a swipe gesture on the UI element. |
TouchTapGuiObject.TouchTap(touchPositions: Array) | Fires when the player performs a tap gesture on the UI element. |
受け継いでいるメンバー
GuiBase2d から受け継いでいるもの(11)
AbsolutePosition・AbsoluteRotation・AbsoluteSize・AutoLocalize・RootLocalizationTable・SelectionBehaviorDown・SelectionBehaviorLeft・SelectionBehaviorRight・SelectionBehaviorUp・SelectionGroup・SelectionChanged
Instance から受け継いでいるもの(46)
Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged
Object から受け継いでいるもの(4)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(GuiObject)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。