Version: 5.4
public bool fillCenter ;

Descripción

Si o no para renderizar el centro de una imagen Tiled o Sliced.

Esto sólo tendrá algún efecto si el Image.sprite tiene bordes.

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; } }