Unity Engine documentationScript ReferenceUnityEngineUnityEngine.UIElementsSliceTypeThe slice type determines whether the center of the image is scaled or tiled.阅读时间1 分钟最后更新于 1 个月前Definition Type: Enum Namespace: UnityEngine.UIElements Assembly: UnityEngine.UIElementsModule public enum SliceType Fields ValueDescriptionSlicedFill the slices by stretching the center and sides.TiledFill the slices by tiling the center and sides. Image must be imported as a Sprite (2D and UI) and have Mesh Type set to Full Rect.