public void PostSignificanceFunction(ManagedObjectInfo objectInfo, float oldSignificance, float significance, bool bUnregistered) { if (significance > 0f) { //提高 AI tick 频率,设置粒子发射器等等 //设置 lod level } else { //关闭 AI tick,关闭粒子等 //关闭 lod } #if UNITY_EDITOR Transform significanceActor = (Transform)objectInfo.GetObject(); DebugHUD textMesh = significanceActor.GetComponentInChildren <DebugHUD>(); textMesh.ShowDebugView(significance, debugDisplayInfo.ShouldDisplayDebug); #endif }