Skip to main content

Graphic

info
  • This class is only available in a Local environment

The Graphic class is a component which interacts with Unity Images on UI.

caution

The Graphic class is only compatible with Image and RawImage.

To get a Graphic from an item, use the GetComponent method.

let graphicComponent = item.GetComponent("Graphic")

You can then use the graphicComponent property to access the Graphic class.

Methods

Method NameReturn TypeParametersDescription
SetImageFromAssetvoidstringSets the image asset from the World's Resources