123456789101112131415161718192021222324252627282930313233343536 |
-
- using QFramework;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class TestLoader : MonoBehaviour
- {
- // Start is called before the first frame update
- void Start()
- {
- var loader = ResLoader.Allocate();
- for (int i = 0; i < 20; i++)
- {
- var model = loader.LoadSync<GameObject>("Resources/Model/SpaceStation " + i);
- GameObject objModel = model.Instantiate();
-
- }
- }
- // Update is called once per frame
- void Update()
- {
-
- }
- }
- public class LoaderData
- {
- public string path;
- public string dateTime;
- public Object obj;
- }
|