Tanoda
WebGLModelLoader.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4
5public class WebGLModelLoader : MonoBehaviour
6{
7 public bool modelEditor = false;
8
9 void Start()
10 {
11 var modelUrl = HttpCookie.GetCookie("modelURL");
12 var baseUrl = HttpCookie.GetCookie("baseURL");
13#if UNITY_EDITOR
14 modelUrl = "50a5ec6529bb3ed71624626118.zip";
15#endif
16 if (baseUrl != "")
17 {
18 NetworkManager.instance.url = baseUrl;
19 }
20 Debug.Log($"trying to load file name: '{modelUrl}' from base: '{baseUrl}'");
21 FindObjectOfType<RuntimeTriLibLoader>().ModelFromURL(modelUrl, modelEditor);
22 }
23}
UnityEngine.Debug Debug
Definition: TanodaServer.cs:19