3월, 2022의 게시물 표시

[Unity} How to pop up multiple window with error message.

이미지
 1. I would like to pop error message window up.       Before I just use one designated 'Error Pop Up Window' and 'SetActive(true)' command.  2. But now I call multiple function with Delegate Chain. If I use only one pop up window and there are multiple error message in miltiple function, that will give me error in my life. So I figured out this "Hmm. Will I instantiate Pop Up window as prefab? " I did but Pop Up window instantiate where I can't see.     public void PopErrInstantiate()     {         GameObject childObject = Instantiate(popErrorPref) as GameObject;      } 3.Then let's make Pop Up window instantiate & let this be the child of main Canvas.      public void PopErrInstantiate(s)     {         GameObject childObject = Instantiate(popErrorPref) as GameObject;         childObject.transform.parent = Ui_ControlUi.BigCanvas.trans...