spline启用默认多线程
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -52,7 +52,10 @@ namespace Demo.Game
|
|||||||
{
|
{
|
||||||
public static SplineCore Make()
|
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;
|
[Content] private SplineComputer m_MySplineComputer;
|
||||||
|
|||||||
Reference in New Issue
Block a user