ImageButtonクラス
ひとことで言うと
ImageButtonは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):A 2D user interface element that displays an interactive image.
クラスの関係
受け継いでいるクラス:Object → Instance → GuiBase → GuiBase2d → GuiObject → GuiButton → ImageButton
プロパティ(16)
| 名前と書き方 | 説明 |
|---|---|
HoverImageImageButton.HoverImage: ContentId | A texture ID that will be used when the ImageButton is being hovered. |
HoverImageContentImageButton.HoverImageContent: Content | The image content that will be used when the ImageButton is being hovered. Only supports asset URIs. |
ImageImageButton.Image: ContentId | The image content displayed by the ImageButton element. Reads and writes to Class.ImageButton.ImageContent|ImageContent. |
ImageColor3ImageButton.ImageColor3: Color3 | Determines how a rendered image will be colorized. |
ImageContentImageButton.ImageContent: Content | The image content displayed by the UI element. Supports asset URIs and EditableImage objects. |
ImageRectOffsetImageButton.ImageRectOffset: Vector2 | The offset in pixels of the sub-area of an image to be displayed. |
ImageRectSizeImageButton.ImageRectSize: Vector2 | Determines the size in pixels of the sub-area of an image to be displayed. |
ImageTransparencyImageButton.ImageTransparency: float | Determines the transparency of the rendered image. |
IsLoadedImageButton.IsLoaded: boolean | Indicates whether the Image has finished loading from the Roblox website. |
PressedImageImageButton.PressedImage: ContentId | A texture ID that will be used when an ImageButton is being pressed. |
PressedImageContentImageButton.PressedImageContent: Content | The image content that will be used when an ImageButton is being pressed. Only supports asset URIs. |
ResampleModeImageButton.ResampleMode: ResamplerMode | Selects the image resampling mode for the button. |
ScaleTypeImageButton.ScaleType: ScaleType | Determines how an image will scale if displayed in a UI element whose size differs from the source image. |
SliceCenterImageButton.SliceCenter: Rect | Sets the slice boundaries of a 9-sliced image. |
SliceScaleImageButton.SliceScale: float | Scales the 9-slice edges by the specified ratio. |
TileSizeImageButton.TileSize: UDim2 | Sets the tiling scale of the ImageButton. |
受け継いでいるメンバー
GuiButton から受け継いでいるもの(14)
AutoButtonColor・HoverHapticEffect・Modal・PressHapticEffect・Selected・Style・Activated・MouseButton1Click・MouseButton1Down・MouseButton1Up・MouseButton2Click・MouseButton2Down・MouseButton2Up・SecondaryActivated
GuiObject から受け継いでいるもの(42)
Active・AnchorPoint・AutomaticSize・BackgroundColor3・BackgroundTransparency・BorderColor3・BorderMode・BorderSizePixel・ClipsDescendants・GuiState・InputSink・Interactable・LayoutOrder・NextSelectionDown・NextSelectionLeft・NextSelectionRight・NextSelectionUp・Position・Rotation・Selectable・SelectionImageObject・SelectionOrder・Size・SizeConstraint・Visible・ZIndex・InputBegan・InputChanged・InputEnded・MouseEnter・MouseLeave・MouseMoved・MouseWheelBackward・MouseWheelForward・SelectionGained・SelectionLost・TouchLongPress・TouchPan・TouchPinch・TouchRotate・TouchSwipe・TouchTap
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(ImageButton)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。