Skip to main content

加载

加载

同步

JResource.LoadRes<TextAsset>("test.txt");
Log.Print("同步加载");

异步

JResource.LoadResAsync<TextAsset>("test.txt", txt2 => {
Log.Print("异步加载");
});

加载场景

JResource.LoadSceneAsync("demo.unity");
JAction j = new JAction();
j.RepeatWhen(() =>
{
Log.Print($"场景加载进度:{JResource.LoadSceneProgress * 100}");
},()=>JResource.LoadSceneProgress< 1,0.001f).Execute();

匹配模式

JResource.MatchMode. 点出各种类型 对应 HotUpdateResources 下的文件夹