Unity使用线程池

it2026-03-28  4

using System.Collections; using System.Collections.Generic; using System.Threading; using UnityEngine; namespace DC { public class ThreadPoolDemo : MonoBehaviour { private void Start() { ThreadPool.QueueUserWorkItem(new WaitCallback(Func), 3); } void Func(object param) { Debug.Log(param + " is 3"); } } }

 

最新回复(0)