コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】すべての MenuItem の名前を取得する例

ソースコード

取得結果

Assets/Copy Path
Assets/Create/2D/Physics Material 2D
Assets/Create/2D/Sprite Atlas
Assets/Create/2D/Sprite Library Asset
Assets/Create/2D/Sprite Library Asset Variant
Assets/Create/2D/Sprite Shape Profile
Assets/Create/2D/Sprites/9-Sliced
Assets/Create/2D/Sprites/Capsule
Assets/Create/2D/Sprites/Circle
Assets/Create/2D/Sprites/Hexagon Flat-Top
Assets/Create/2D/Sprites/Hexagon Pointed-Top
Assets/Create/2D/Sprites/Isometric Diamond
Assets/Create/2D/Sprites/Square
Assets/Create/2D/Sprites/Triangle
Assets/Create/2D/Tile Palette/Hexagonal Flat-Top
Assets/Create/2D/Tile Palette/Hexagonal Pointed-Top
Assets/Create/2D/Tile Palette/Isometric
Assets/Create/2D/Tile Palette/Rectangular
Assets/Create/2D/Tiles/Advanced Rule Override Tile
Assets/Create/2D/Tiles/Animated Tile
Assets/Create/2D/Tiles/Custom Rule Tile Script
Assets/Create/2D/Tiles/Hexagonal Rule Tile
Assets/Create/2D/Tiles/Isometric Rule Tile
Assets/Create/2D/Tiles/Rule Override Tile
Assets/Create/2D/Tiles/Rule Tile
Assets/Create/Animation
Assets/Create/Animator Controller
Assets/Create/Animator Override Controller
Assets/Create/Assembly Definition
Assets/Create/Assembly Definition Reference
Assets/Create/Audio Mixer
Assets/Create/Avatar Mask
Assets/Create/Brush
Assets/Create/C# Script
Assets/Create/Custom Font
Assets/Create/Custom Render Texture
Assets/Create/Folder
Assets/Create/GUI Skin
Assets/Create/Legacy/Cubemap
Assets/Create/Lens Flare
Assets/Create/Lighting Settings
Assets/Create/Lightmap Parameters
Assets/Create/Material
Assets/Create/Material Variant
Assets/Create/Physic Material
Assets/Create/Playables/Playable Asset C# Script
Assets/Create/Playables/Playable Behaviour C# Script
Assets/Create/Prefab
Assets/Create/Prefab Variant
Assets/Create/Render Texture
Assets/Create/Scene
Assets/Create/Scene Template
Assets/Create/Scene Template From Scene
Assets/Create/Scene Template Pipeline
Assets/Create/Search/Assets Index
Assets/Create/Search/Prefabs Index
Assets/Create/Search/Scenes Index
Assets/Create/Shader Variant Collection
Assets/Create/Shader/Compute Shader
Assets/Create/Shader/Image Effect Shader
Assets/Create/Shader/Ray Tracing Shader
Assets/Create/Shader/Standard Surface Shader
Assets/Create/Shader/Unlit Shader
Assets/Create/Terrain Layer
Assets/Create/Testing/C# Test Script
Assets/Create/Testing/Tests Assembly Folder
Assets/Create/Text/Color Gradient
Assets/Create/Text/Font Asset
Assets/Create/Text/Font Asset Variant
Assets/Create/Text/Sprite Asset
Assets/Create/Text/Text StyleSheet
Assets/Create/TextMeshPro/Color Gradient
Assets/Create/TextMeshPro/Font Asset
Assets/Create/TextMeshPro/Font Asset Variant
Assets/Create/TextMeshPro/Sprite Asset
Assets/Create/TextMeshPro/Style Sheet
Assets/Create/UI Toolkit/Default Runtime Theme File
Assets/Create/UI Toolkit/Editor Window
Assets/Create/UI Toolkit/Panel Settings Asset
Assets/Create/UI Toolkit/Style Sheet
Assets/Create/UI Toolkit/Text Settings
Assets/Create/UI Toolkit/TSS Theme File
Assets/Create/UI Toolkit/UI Document
Assets/Delete
Assets/Export Package...
Assets/Extract From Prefab
Assets/Find References In Scene
Assets/Import New Asset...
Assets/Import Package/Custom Package...
Assets/Open
Assets/Open C# Project
Assets/Open Scene Additive
Assets/Properties...
Assets/Refresh
Assets/Reimport
Assets/Reimport All
Assets/Rename
Assets/Select Dependencies
Assets/Show in Explorer
Assets/Update UXML Schema
Assets/View in Import Activity Window
Assets/View in Package Manager
Component/2D Animation/Sprite Library
Component/2D Animation/Sprite Resolver
Component/2D Animation/Sprite Skin
Component/Add...
Component/Audio/Audio Chorus Filter
Component/Audio/Audio Distortion Filter
Component/Audio/Audio Echo Filter
Component/Audio/Audio High Pass Filter
Component/Audio/Audio Listener
Component/Audio/Audio Low Pass Filter
Component/Audio/Audio Reverb Filter
Component/Audio/Audio Reverb Zone
Component/Audio/Audio Source
Component/Effects/Halo
Component/Effects/Lens Flare
Component/Effects/Line Renderer
Component/Effects/Particle System
Component/Effects/Projector
Component/Effects/Trail Renderer
Component/Effects/Visual Effect
Component/Event/Event System
Component/Event/Event Trigger
Component/Event/Graphic Raycaster
Component/Event/Physics 2D Raycaster
Component/Event/Physics Raycaster
Component/Event/Standalone Input Module
Component/Event/Touch Input Module
Component/Layout/Aspect Ratio Fitter
Component/Layout/Canvas
Component/Layout/Canvas Group
Component/Layout/Canvas Scaler
Component/Layout/Content Size Fitter
Component/Layout/Grid Layout Group
Component/Layout/Horizontal Layout Group
Component/Layout/Layout Element
Component/Layout/Rect Transform
Component/Layout/Vertical Layout Group
Component/Mesh/Legacy/Text Mesh
Component/Mesh/Mesh Filter
Component/Mesh/Mesh Renderer
Component/Mesh/Skinned Mesh Renderer
Component/Mesh/TextMeshPro - Text
Component/Miscellaneous/Aim Constraint
Component/Miscellaneous/Animation
Component/Miscellaneous/Animator
Component/Miscellaneous/Billboard Renderer
Component/Miscellaneous/Grid
Component/Miscellaneous/Look At Constraint
Component/Miscellaneous/Parent Constraint
Component/Miscellaneous/Particle System Force Field
Component/Miscellaneous/Position Constraint
Component/Miscellaneous/Rotation Constraint
Component/Miscellaneous/Scale Constraint
Component/Miscellaneous/Sprite Mask
Component/Miscellaneous/Sprite Shape Renderer
Component/Miscellaneous/Terrain
Component/Miscellaneous/Wind Zone
Component/Navigation/Nav Mesh Agent
Component/Navigation/Nav Mesh Obstacle
Component/Navigation/Off Mesh Link
Component/Physics 2D/Area Effector 2D
Component/Physics 2D/Box Collider 2D
Component/Physics 2D/Buoyancy Effector 2D
Component/Physics 2D/Capsule Collider 2D
Component/Physics 2D/Circle Collider 2D
Component/Physics 2D/Composite Collider 2D
Component/Physics 2D/Constant Force 2D
Component/Physics 2D/Custom Collider 2D
Component/Physics 2D/Distance Joint 2D
Component/Physics 2D/Edge Collider 2D
Component/Physics 2D/Fixed Joint 2D
Component/Physics 2D/Friction Joint 2D
Component/Physics 2D/Hinge Joint 2D
Component/Physics 2D/Platform Effector 2D
Component/Physics 2D/Point Effector 2D
Component/Physics 2D/Polygon Collider 2D
Component/Physics 2D/Relative Joint 2D
Component/Physics 2D/Rigidbody 2D
Component/Physics 2D/Slider Joint 2D
Component/Physics 2D/Spring Joint 2D
Component/Physics 2D/Surface Effector 2D
Component/Physics 2D/Target Joint 2D
Component/Physics 2D/Wheel Joint 2D
Component/Physics/Articulation Body
Component/Physics/Box Collider
Component/Physics/Capsule Collider
Component/Physics/Character Controller
Component/Physics/Character Joint
Component/Physics/Cloth
Component/Physics/Configurable Joint
Component/Physics/Constant Force
Component/Physics/Fixed Joint
Component/Physics/Hinge Joint
Component/Physics/Mesh Collider
Component/Physics/Rigidbody
Component/Physics/Sphere Collider
Component/Physics/Spring Joint
Component/Physics/Terrain Collider
Component/Physics/Wheel Collider
Component/Playables/Playable Director
Component/Rendering/Camera
Component/Rendering/Canvas Renderer
Component/Rendering/Flare Layer
Component/Rendering/Light
Component/Rendering/Light Probe Group
Component/Rendering/Light Probe Proxy Volume
Component/Rendering/LOD Group
Component/Rendering/Occlusion Area
Component/Rendering/Occlusion Portal
Component/Rendering/Pixel Perfect Camera
Component/Rendering/Reflection Probe
Component/Rendering/Skybox
Component/Rendering/Sorting Group
Component/Rendering/Sprite Renderer
Component/Rendering/Streaming Controller
Component/Scripts/DG.DemiLib.External/De Hierarchy Component
Component/Scripts/Example
Component/Scripts/MyProject/Vertical Text Component
Component/Scripts/TMPro/Text Container
Component/Scripts/TMPro/TMP_Scrollbar Event Handler
Component/Scripts/TMPro/TMP_Selection Caret
Component/Scripts/TMPro/TMP_Sprite Animator
Component/Scripts/TMPro/TMP_Sub Mesh
Component/Scripts/TMPro/TMP_Sub Mesh UI
Component/Scripts/UnityEngine.EventSystems/Base Input
Component/Scripts/UnityEngine.TestTools.TestRunner.Callbacks/Player Quit Handler
Component/Scripts/UnityEngine.TestTools.TestRunner.Callbacks/Test Result Renderer Callback
Component/Scripts/UnityEngine.U2D.IK/CCD Solver 2D
Component/Scripts/UnityEngine.U2D.IK/Fabrik Solver 2D
Component/Scripts/UnityEngine.U2D.IK/IK Manager 2D
Component/Scripts/UnityEngine.U2D.IK/Limb Solver 2D
Component/Scripts/UnityEngine.U2D/Sprite Shape Controller
Component/Tilemap/Grid Information
Component/Tilemap/Tilemap
Component/Tilemap/Tilemap Collider 2D
Component/Tilemap/Tilemap Renderer
Component/UI Toolkit/Panel Event Handler (UI Toolkit)
Component/UI Toolkit/Panel Raycaster (UI Toolkit)
Component/UI Toolkit/UI Document
Component/UI/Button
Component/UI/Dropdown - TextMeshPro
Component/UI/Effects/Outline
Component/UI/Effects/Position As UV1
Component/UI/Effects/Shadow
Component/UI/Image
Component/UI/Legacy/Dropdown
Component/UI/Legacy/Input Field
Component/UI/Legacy/Text
Component/UI/Mask
Component/UI/Raw Image
Component/UI/Rect Mask 2D
Component/UI/Scroll Rect
Component/UI/Scrollbar
Component/UI/Selectable
Component/UI/Slider
Component/UI/TextMeshPro - Input Field
Component/UI/TextMeshPro - Text (UI)
Component/UI/Toggle
Component/UI/Toggle Group
Component/Video/Video Player
Edit/Clear All PlayerPrefs
Edit/Copy
Edit/Cut
Edit/Delete
Edit/Deselect All
Edit/Duplicate
Edit/Find
Edit/Frame Selected
Edit/Graphics Tier/Shader Hardware Tier 1
Edit/Graphics Tier/Shader Hardware Tier 2
Edit/Graphics Tier/Shader Hardware Tier 3
Edit/Invert Selection
Edit/Lock View to Selected
Edit/Paste
Edit/Paste As Child
Edit/Pause
Edit/Play
Edit/Preferences...
Edit/Project Settings...
Edit/Redo
Edit/Rename
Edit/Search All...
Edit/Select All
Edit/Select Children
Edit/Select Prefab Root
Edit/Selection/Load Selection 0
Edit/Selection/Load Selection 1
Edit/Selection/Load Selection 2
Edit/Selection/Load Selection 3
Edit/Selection/Load Selection 4
Edit/Selection/Load Selection 5
Edit/Selection/Load Selection 6
Edit/Selection/Load Selection 7
Edit/Selection/Load Selection 8
Edit/Selection/Load Selection 9
Edit/Selection/Save Selection 0
Edit/Selection/Save Selection 1
Edit/Selection/Save Selection 2
Edit/Selection/Save Selection 3
Edit/Selection/Save Selection 4
Edit/Selection/Save Selection 5
Edit/Selection/Save Selection 6
Edit/Selection/Save Selection 7
Edit/Selection/Save Selection 8
Edit/Selection/Save Selection 9
Edit/Shortcuts...
Edit/Sign in...
Edit/Sign out
Edit/Step
Edit/Undo
Edit/Undo History
File/Build And Run
File/Build Settings...
File/Exit
File/New Project...
File/New Scene
File/Open Project...
File/Open Scene
File/Save
File/Save As Scene Template...
File/Save As...
File/Save Project
GameObject/2D Object/Physics/Dynamic Sprite
GameObject/2D Object/Physics/Static Sprite
GameObject/2D Object/Pixel Perfect Camera
GameObject/2D Object/Sprite Mask
GameObject/2D Object/Sprite Shape/Closed Shape
GameObject/2D Object/Sprite Shape/Open Shape
GameObject/2D Object/Sprites/9-Sliced
GameObject/2D Object/Sprites/Capsule
GameObject/2D Object/Sprites/Circle
GameObject/2D Object/Sprites/Hexagon Flat-Top
GameObject/2D Object/Sprites/Hexagon Pointed-Top
GameObject/2D Object/Sprites/Isometric Diamond
GameObject/2D Object/Sprites/Square
GameObject/2D Object/Sprites/Triangle
GameObject/2D Object/Tilemap/Hexagonal - Flat-Top
GameObject/2D Object/Tilemap/Hexagonal - Pointed-Top
GameObject/2D Object/Tilemap/Isometric
GameObject/2D Object/Tilemap/Isometric Z as Y
GameObject/2D Object/Tilemap/Rectangular
GameObject/3D Object/Capsule
GameObject/3D Object/Cube
GameObject/3D Object/Cylinder
GameObject/3D Object/Legacy/TextMesh
GameObject/3D Object/Plane
GameObject/3D Object/Quad
GameObject/3D Object/Ragdoll...
GameObject/3D Object/Sphere
GameObject/3D Object/Terrain
GameObject/3D Object/Text - TextMeshPro
GameObject/3D Object/Tree
GameObject/3D Object/Wind Zone
GameObject/Align View to Selected
GameObject/Align With View
GameObject/Audio/Audio Reverb Zone
GameObject/Audio/Audio Source
GameObject/Camera
GameObject/Center On Children
GameObject/Clear Parent
GameObject/Create Empty
GameObject/Create Empty Child
GameObject/Create Empty Parent
GameObject/Effects/Line
GameObject/Effects/Particle System
GameObject/Effects/Particle System Force Field
GameObject/Effects/Trail
GameObject/Light/Area Light
GameObject/Light/Directional Light
GameObject/Light/Light Probe Group
GameObject/Light/Point Light
GameObject/Light/Reflection Probe
GameObject/Light/Spotlight
GameObject/Make Parent
GameObject/Move To View
GameObject/Set as first sibling
GameObject/Set as last sibling
GameObject/Toggle Active State
GameObject/UI Toolkit/UI Document
GameObject/UI/Button - TextMeshPro
GameObject/UI/Canvas
GameObject/UI/Dropdown - TextMeshPro
GameObject/UI/Event System
GameObject/UI/Image
GameObject/UI/Input Field - TextMeshPro
GameObject/UI/Legacy/Button
GameObject/UI/Legacy/Dropdown
GameObject/UI/Legacy/Input Field
GameObject/UI/Legacy/Text
GameObject/UI/Panel
GameObject/UI/Raw Image
GameObject/UI/Scroll View
GameObject/UI/Scrollbar
GameObject/UI/Slider
GameObject/UI/Text - TextMeshPro
GameObject/UI/Toggle
GameObject/Video/Video Player
Help/About Unity
Help/Check for Updates
Help/Download Beta...
Help/Manage License
Help/Package Manager Licenses
Help/Premium Expert Help - Beta
Help/Release Notes
Help/Report a Bug...
Help/Reset Packages to defaults
Help/Scripting Reference
Help/Software Licenses
Help/Unity Answers
Help/Unity Feedback
Help/Unity Forum
Help/Unity Manual
Help/Unity Services
Jobs/Burst/Enable Compilation
Jobs/Burst/Native Debug Mode Compilation
Jobs/Burst/Open Inspector...
Jobs/Burst/Safety Checks/Force On
Jobs/Burst/Safety Checks/Off
Jobs/Burst/Safety Checks/On
Jobs/Burst/Show Timings
Jobs/Burst/Synchronous Compilation
Services/Explore
Services/General Settings
Window/2D/2D Animation Asset Upgrader
Window/2D/Sprite Editor
Window/2D/Tile Palette
Window/AI/Navigation
Window/Analysis/Frame Debugger
Window/Analysis/IMGUI Debugger
Window/Analysis/Import Activity
Window/Analysis/Physics Debugger
Window/Analysis/Profiler
Window/Analysis/Profiler (Standalone Process)
Window/Animation/Animation
Window/Animation/Animator
Window/Animation/Animator Parameter
Window/Asset Management/Version Control
Window/Asset Store
Window/Audio/Audio Mixer
Window/Displays/Profiles/Default
Window/Displays/Profiles/Simulate Standalone
Window/Displays/Show Toolbar on Fullscreen
Window/Displays/Toggle Fullscreen
Window/General/Console
Window/General/Device Simulator
Window/General/Game
Window/General/Hierarchy
Window/General/Inspector
Window/General/Progress
Window/General/Project
Window/General/Scene
Window/General/Services
Window/General/Test Runner
Window/Layouts/2 by 3
Window/Layouts/4 Split
Window/Layouts/Default
Window/Layouts/Delete Layout/2 by 3
Window/Layouts/Delete Layout/4 Split
Window/Layouts/Delete Layout/Default
Window/Layouts/Delete Layout/My Layout
Window/Layouts/Delete Layout/Tall
Window/Layouts/Delete Layout/Wide
Window/Layouts/Load Layout from File...
Window/Layouts/My Layout
Window/Layouts/Reset All Layouts
Window/Layouts/Save Layout to File...
Window/Layouts/Save Layout...
Window/Layouts/Tall
Window/Layouts/Wide
Window/Next Window
Window/Package Manager
Window/Panels/1 Console
Window/Panels/2 Game
Window/Panels/3 Hierarchy
Window/Panels/4 Inspector
Window/Panels/5 Package Manager
Window/Panels/6 Preferences
Window/Panels/7 Project
Window/Panels/8 Project Settings
Window/Panels/9 Scene
Window/Panels/Close all floating panels...
Window/Previous Window
Window/Rendering/Light Explorer
Window/Rendering/Lighting
Window/Rendering/Occlusion Culling
Window/Search/Asset Database
Window/Search/Asset Store
Window/Search/Find Files
Window/Search/Index Manager
Window/Search/New Window
Window/Search/Open Report...
Window/Search/Performance Trackers
Window/Search/Scene
Window/Search/Transient Window
Window/Text/Font Asset Creator
Window/Text/Sprite Importer
Window/TextMeshPro/Font Asset Creator
Window/TextMeshPro/Import TMP Essential Resources
Window/TextMeshPro/Import TMP Examples and Extras
Window/TextMeshPro/Project Files GUID Remapping Tool
Window/TextMeshPro/Project Text Spacing Conversion Tool
Window/TextMeshPro/Sprite Importer
Window/UI Toolkit/Debugger
Window/UI Toolkit/Event Debugger
Window/UI Toolkit/Package Asset Converter
Window/UI Toolkit/Samples
Window/UI Toolkit/UI Builder