/// <summary> /// 异步获取CMTexture回调 /// </summary> /// <param name="tex"></param> /// <param name="param1"></param> /// <param name="param2"></param> /// <param name="param3"></param> private static void OnGetCMTextureDlg(IUITexture tex, object param1, object param2, object param3) { if (null != param1 && param1 is UITexture) { UITexture uitexture = (UITexture)param1; Texture texture = (null != tex) ? tex.GetTexture() : null; uitexture.mainTexture = texture; if (null != param2 && param2 is bool) { bool makePerfect = (bool)param2; if (makePerfect && null != uitexture) { uitexture.MakePixelPerfect(); } } } }