WebGLWindowsFileImporter.unitypackage:
https://pan.baidu.com/s/1zH9UXi2lR5rDV9RJn6xaSQ?pwd=5566
示例代码:
cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
void Start()
{
WebGLWindowsFileImporter._____Import("jpg,jpeg,png", (fileName, bs) =>
{
Debug.LogError("文件名称:" + fileName);
Debug.LogError("文件字节长度:" + bs.Length);
});
}
}