Unity Engine documentationScript ReferenceUnityEngineUnityEngine.UIElementsBackgroundBackground(Texture2D)Creates from a Texture2D.阅读时间1 分钟最后更新于 1 个月前Definition Type: Constructor Namespace: UnityEngine.UIElements Assembly: UnityEngine.UIElementsModule 警告Deprecated. Use Background.FromTexture2D instead public Background(Texture2D t) Parameters tTexture2D