//正常模式只有显示和隐藏 public static void SetState(bool active, LOD lod, LODGroup lodGroup) { switch (lod.CurrentState) { case State.None: case State.UnLoaded: if (active == true) { ChangeRendererState(active, lod); lodGroup.OnDisableAllLOD(); } break; case State.Loaded: if (active == false) { ChangeRendererState(active, lod); } break; } }