FromSprite(Sprite)
Creates a background from a Sprite.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public static Background FromSprite(Sprite s)
Parameters
The sprite to use as a background.
Returns
Type | Description |
|---|---|
| Background | A new background object. |