FromTexture2D(Texture2D)
Creates a background from a Texture2D.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public static Background FromTexture2D(Texture2D t)
Parameters
The texture to use as a background.
Returns
Type | Description |
|---|---|
| Background | A new background object. |