Skip to content

YaUIImage

YaUIImage controls images in the UI.

Properties

NTexture Texture

CLIENT ONLY 
Sets/Gets the texture of the image.

FillMethod FillMethod

CLIENT ONLY 
Sets the fill method of the image to OriginHorizontal, OriginVertical, Origin90, Origin180, or Origin360.

FlipType Flip

CLIENT ONLY 
Sets the flip type of the image to horizontal or vertical.

number FillOrigin

CLIENT ONLY 
Sets the image's origin point of the fill process to OriginHorizontal, OriginVertical, Origin90, Origin180, or Origin360.

boolean FillClockwise

CLIENT ONLY 
Determines whether to set the fill direction to clockwise. If true, the image is filled clockwise; if false, the image is filled counterclockwise.

number FillAmount

CLIENT ONLY 
Sets the image fill amount between 0 and 1.

Functions

void SetTexture(Texture texture)

CLIENT ONLY 
Sets the texture of the image.

void SetColor(string color)

CLIENT ONLY 
Sets the color of the image.

void DoDispose()

CLIENT ONLY 
Disposes of the image.