This class wraps a simple UI image element for usage in Lua.
You can spawn it by creating a "Entity.UIImage" entity.
public void SetTexture(TextureResource resource)
(Client) Set the texture of this UI image.
Arguments
public LuaColor GetColor()
(Client) Get the color of this image.
Returns: (Color) The color of this image.
public void SetColor(LuaColor color)
(Client) Set the color of this image.
Arguments
public LuaVector3 GetSize()
(Client) Gets the width and height of the texture, contained within the transform.
Returns: (Vector3) The width and height of the texture.
public void SetSize(LuaVector3 size)
(Client) Sets the width and height of the texture, contained within the transform.
Arguments
public LuaVector3 GetOffset()
(Client) Gets the offset of the X and Y coordinates of the texture.
Returns: (Vector3) The texture offset.
public void SetOffset(LuaVector3 offset)
(Client) Sets the offset of the X and Y coordinates of the texture.
Arguments
public void MakeMask(bool showGraphic = true)
(Client) Turn this image into a mask.
Child graphics of a mask will be cut off in the areas where the mask is not visible (whether it is outside the bounds of the mask, or in transparent spots).
Arguments