public class TestCase01 : MonoBehaviour {
[SerializeField]
GameObject _parent; // parent GameObject of target's GameObject
[SerializeField]
UIRect _target;
void Start(){
StartCoroutine(_Process());
}
IEnumerator _Process(){
yield return null;
_target.alpha = 0.0f;
yield return null;
_parent.SetActive(false);
yield return new WaitForSeconds
(0
.5f
);
_parent.SetActive(true);
_target.alpha = 1.0f;
yield break;
}
}