Page 1 of 1

[HOWTO] How To: Access Missing Menu Items on MacOS

Posted: Tue Apr 30, 2024 9:53 am
by Tony Li
The Unity editor has a known bug ("IN-70913: A submenu disappears on MacOS...") that is still not resolved as of this post. If you're on MacOS and can't access menu items in Tools > Pixel Crushers > Dialogue System > Tools, add this script to a folder named Editor in your project to move those menu items to Tools > Pixel Crushers > Dialogue System:

ShortDSMenuItems.cs

Code: Select all

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

namespace PixelCrushers.DialogueSystem.DialogueEditor
{

    public static class ShortDSMenuItems
    {
        [MenuItem("Tools/Pixel Crushers/Dialogue System/Variable Viewer", false, 99)]
        public static void OpenVariableViewWindow() { VariableViewWindow.OpenVariableViewWindow(); }

        [MenuItem("Tools/Pixel Crushers/Dialogue System/Asset Renamer", false, 99)]
        public static void OpenAssetRenamer() { DialogueSystemAssetRenamerWindow.Open(); }

        [MenuItem("Tools/Pixel Crushers/Dialogue System/Localization Tools", false, 99)]
        public static void OpenLocalizationToolsWindow() { LocalizationToolsWindow.Init(); }

        [MenuItem("Tools/Pixel Crushers/Dialogue System/Unique ID Tool", false, 99)]
        public static void OpenUniqueIDWindow() { UniqueIDWindow.OpenUniqueIDWindow(); }

        [MenuItem("Tools/Pixel Crushers/Dialogue System/Camera Angle Editor", false, 99)]
        public static void OpenCameraAngleEditor() { CameraAngleEditor.Init(); }

        [MenuItem("Tools/Pixel Crushers/Dialogue System/Clear Saved Localization Settings", false, 99)]
        public static void ClearSavedLocalizationSettings() { UpdateLocalizedUITexts.ClearSavedLocalizationSettings(); }

        [MenuItem("Tools/Pixel Crushers/Dialogue System/Clear Quest Tracker PlayerPrefs Key", false, 100)]
        public static void ClearQuestTrackerPlayerPrefsKeys() { DialogueSystemMenuItems.ClearQuestTrackerPlayerPrefsKeys(); }
    }
}