private void OnClick_confirmButton() { string path = pathInputField.text + fileNameInputfield.text; Texture2D texture = null; try { texture = FileMgr.LoadPng(path); } catch (System.Exception) { uiMgr.ShowTipUI("文件不存在"); return; } Printer.instance.SetTexture(texture); uiMgr.ShowTipUI("加载成功"); }