ImageButton - LiruJ/GuiCookie GitHub Wiki

Overview

The ImageButton controller combines the functionality of the base Button class with the functionality of the ImageBlock component.

Components

public, OnCreated()

This is used to display the image of the button.

Properties

ClippingMode

ClippingMode

This is used to determine how the image is drawn based on the size of the element itself.

Texture

Texture2D

The image texture that is drawn.

Colour

Color?

The colour applied to the image.

Image

Image

The image that is displayed.

Functions

SetImageFromName(string)

public, void

Finds the image with the given name in the ResourceManager and sets the image to it.

Throws an exception if the image with the given name does not exist.

⚠️ **GitHub.com Fallback** ⚠️