/// <summary> /// 节约内存,别乱调用。 /// </summary> /// <param name="res"></param> public static void SaveMemory(ResNode res) { if (!isOnRunTimeMode) { return; } if (ResNode.isNullOrEmpty(res)) { return; } if (res.assetType != AssetType.Asset_Prefab) { return; } res.SaveMemory(); }