public override void OnInspectorGUI() { KLEditorUtils.DrawKrillHeader(); m_lastAutogencode = m_target.autogenerateCode; EditorGUI.BeginChangeCheck(); base.OnInspectorGUI(); if (EditorGUI.EndChangeCheck()) { // Detech changes to autogenerate code! if (m_lastAutogencode != m_target.autogenerateCode) { RefreshCore(); } // m_isDirty = m_isDirty || true; } EditorGUILayout.Space(); DrawButtons(); EditorGUILayout.Space(); DrawSerialList(); }
public override void OnInspectorGUI() { KLEditorUtils.DrawKrillHeader(); EditorGUI.BeginChangeCheck(); base.OnInspectorGUI(); EditorGUILayout.Space(); if (KLServer.Instance.startServerWhenPlay && serverPlayState) { KrilloudServer.Instance.ChangeServerPort(); KrilloudServer.Instance.StartServerWhenPlay(KLServer.Instance.startServerWhenPlay); serverPlayState = false; } else if (!KLServer.Instance.startServerWhenPlay && !serverPlayState) { KrilloudServer.Instance.StartServerWhenPlay(KLServer.Instance.startServerWhenPlay); serverPlayState = true; } GUI.enabled = serverPlayState; DrawServerPortButton(); DrawButtons(); }
public override void OnInspectorGUI() { KLEditorUtils.DrawKrillHeader(); DrawInspectorGUI(); EditorGUILayout.Space(); DrawDebugInfo(); }
public override void OnInspectorGUI() { KLEditorUtils.DrawKrillHeader(); KLEditorUtils.DrawUILine(); DrawDebugInfo(); }