We use cookies on this site to enhance your user experience

ImageButton

ImageButton

An ImageButton behaves similarly to an ImageLabel in regards to rendering with the additional behaviors of a GuiButton. It defines the same image-rendering properties as a ImageLabel does.

You can disable image rendering by setting ImageButton/ImageTransparency to 1. This will leave you with a plain rectangle that can be used as a button. However, it may be better to use a blank TextButton for this.

Properties

Name Type Description
Content

The image content displayed by the UI element.

Color3

Determines how a rendered image will be colorized.

Vector2

.The offset in pixels of the sub-area of an image to be displayed

Vector2

Determines the size in pixels of the sub-area of an image to be displayed.

float

Determines the transparency of the rendered image.

bool

Indicates whether the Image has finished loading from the Roblox website.

ScaleType

Determines how an image will scale if displayed in a UI element whose size differs from the source image.

Rect

Determines the center of a nine-slice image.

UDim2

Sets the tiling scale of the ImageButton.

Inherited from Instance , GuiBase , GuiBase2d , GuiObject , GuiButton

Archivable ClassName DataCost Name Parent RobloxLocked AbsolutePosition AbsoluteRotation AbsoluteSize AutoLocalize RootLocalizationTable Active AnchorPoint BackgroundColor3 BackgroundTransparency BorderColor3 BorderSizePixel ClipsDescendants LayoutOrder NextSelectionDown NextSelectionLeft NextSelectionRight NextSelectionUp Position Rotation Selectable SelectionImageObject Size SizeConstraint Transparency Visible ZIndex AutoButtonColor Modal Selected Style