Version: 2017.4
public bool fillCenter ;

説明

Tiled や Sliced 画像の中心をレンダリングするかどうか

これは Image.sprite がボーダーを持つ場合のみ効果をもたらします。

using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class FillCenterScript : MonoBehaviour { public Image xmasCalenderDoor;

// removes the center of the image to reveal the image behind it void OpenCalendarDoor() { xmasCalenderDoor.fillCenter = false; } }