spline启用默认多线程

This commit is contained in:
2025-12-02 15:57:04 +08:00
parent f3f13f7051
commit c09a728f98
2 changed files with 313 additions and 310 deletions

File diff suppressed because one or more lines are too long

View File

@@ -52,7 +52,10 @@ namespace Demo.Game
{
public static SplineCore Make()
{
return new GameObject("", typeof(SplineComputer)).AddComponent<SplineCore>();
SplineCore result = new GameObject("").AddComponent<SplineCore>();
var core = result.GetOrAddComponent<SplineComputer>();
core.multithreaded = true;
return result;
}
[Content] private SplineComputer m_MySplineComputer;