Tiled や Sliced 画像の中心をレンダリングするかどうか
これは Image.sprite がボーダーを持つ場合のみ効果をもたらします。
#pragma strict public class FillCenterScript { public var xmasCalenderDoor; // removes the center of the image to reveal the image behind it function OpenCalendarDoor() { xmasCalenderDoor.fillCenter = false; } }
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; } }