spline启用默认多线程
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user