解决了内存泄漏问题(BasicSplineJustFollow.Update中判断材质是否变更的方式有误)
This commit is contained in:
@@ -42,7 +42,7 @@ namespace Demo.Game
|
||||
{
|
||||
var spline = self.SharedInterfaceScriptObject.FindWithPath(path, false);
|
||||
if (spline == null)
|
||||
yield return self.SharedInterfaceScriptObject.LoadSubScriptAsync(nameof(SplineCore), path, x => spline = x);
|
||||
yield return self.SharedInterfaceScriptObject.DoLoadSubScriptAsync(nameof(SplineCore), path, x => spline = x);
|
||||
if (spline is SplineCore sc)
|
||||
{
|
||||
self.MySplineCore = sc;
|
||||
@@ -160,7 +160,7 @@ namespace Demo.Game
|
||||
")]
|
||||
public IEnumerator LoadNode(string path)
|
||||
{
|
||||
yield return LoadSubScriptAsync(nameof(SplineNode), path, node =>
|
||||
yield return DoLoadSubScriptAsync(nameof(SplineNode), path, node =>
|
||||
{
|
||||
if (node is SplineNode _node)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user