mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-19 13:37:26 -05:00
use UnityWebRequest
This commit is contained in:
parent
e36c43207a
commit
2e7df74d24
|
|
@ -7,6 +7,7 @@ using UniGLTF;
|
|||
using UniHumanoid;
|
||||
using Unity.Collections;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace VRM.SimpleViewer
|
||||
|
|
@ -357,9 +358,9 @@ namespace VRM.SimpleViewer
|
|||
|
||||
IEnumerator LoadCoroutine(string url)
|
||||
{
|
||||
var www = new WWW(url);
|
||||
yield return www;
|
||||
var task = LoadBytesAsync("WebGL.vrm", www.bytes);
|
||||
var www = UnityWebRequest.Get(url);
|
||||
yield return www.SendWebRequest();
|
||||
var task = LoadBytesAsync("WebGL.vrm", www.downloadHandler.data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user