Graphic
info
- This class is only available in a Local environment
The Graphic class is a component which interacts with Unity Images on UI.
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 Name | Return Type | Parameters | Description |
---|---|---|---|
SetImageFromAsset | void | string | Sets the image asset from the World's Resources |