Esempio n. 1
0
 /// <summary>
 /// 接收网页选中的图片
 /// </summary>
 /// <param name="gameObject">用于回调接收图片方法的Gameobject(名字尽量唯一)</param>
 /// <param name="recivePngStrMethodInMonoBehaviour">用于回调接收图片方法(必须在gameObject 某个挂载的MonoBehaviour里有对应的方法 不能是匿名)</param>
 public static void GetTexture2DFormFile_Webgl(GameObject gameObject, Action <string> recivePngStrMethodInMonoBehaviour)
 {
     UpLoadImgFormFileInWeb.GetImgFromFile(gameObject.name, recivePngStrMethodInMonoBehaviour.Method.Name);
 }
Esempio n. 2
0
 /// <summary>
 /// 接收网页选中的图片
 /// </summary>
 /// <param name="ReceiveMsgGameObjectName">用于回调接收图片方法的Gameobject的名字(尽量唯一)</param>
 /// <param name="ReceiveMsgMethodName">用于回调接收图片方法名字</param>
 public static void GetTexture2DFormFile_Webgl(string ReceiveMsgGameObjectName, string ReceiveMsgMethodName)
 {
     UpLoadImgFormFileInWeb.GetImgFromFile(ReceiveMsgGameObjectName, ReceiveMsgMethodName);
 }