//------------------------------------------------------------// Game Framework// Copyright © 2013-2019 Jiang Yin. All rights reserved.// Homepage: http://gameframework.cn/// Feedback: mailto:jiangyin@gameframework.cn//------------------------------------------------------------using UnityEngine;namespace UnityGameFramework.Runtime{public sealed partial class DebuggerComponent : GameFrameworkComponent{private sealed class OperationsWindow : ScrollableDebuggerWindowBase{protected override void OnDrawScrollableWindow(){GUILayout.Label("<b>Operations</b>");GUILayout.BeginVertical("box");{ObjectPoolComponent objectPoolComponent = GameEntry.GetComponent<ObjectPoolComponent>();if (objectPoolComponent != null){if (GUILayout.Button("Object Pool Release", GUILayout.Height(30f))){objectPoolComponent.Release();}if (GUILayout.Button("Object Pool Release All Unused", GUILayout.Height(30f))){objectPoolComponent.ReleaseAllUnused();}}ResourceComponent resourceCompoent = GameEntry.GetComponent<ResourceComponent>();if (resourceCompoent != null){if (GUILayout.Button("Unload Unused Assets", GUILayout.Height(30f))){resourceCompoent.ForceUnloadUnusedAssets(false);}if (GUILayout.Button("Unload Unused Assets and Garbage Collect", GUILayout.Height(30f))){resourceCompoent.ForceUnloadUnusedAssets(true);}}if (GUILayout.Button("Shutdown Game Framework (None)", GUILayout.Height(30f))){GameEntry.Shutdown(ShutdownType.None);}if (GUILayout.Button("Shutdown Game Framework (Restart)", GUILayout.Height(30f))){GameEntry.Shutdown(ShutdownType.Restart);}if (GUILayout.Button("Shutdown Game Framework (Quit)", GUILayout.Height(30f))){GameEntry.Shutdown(ShutdownType.Quit);}}GUILayout.EndVertical();}}}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。