ImageBox - LiruJ/GuiCookie GitHub Wiki

Overview

The ImageBox controller acts as a manager for the underlying ImageBlock component. This is a mostly empty class, existing purely to make interacting with dedicated image boxes easier.

Components

public, OnCreated()

The underlying image block.

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** ⚠️