I noticed that all of the navigation mesh plugins on the marketplace weren’t great, so I made a simple plug-in that toggles it.
Features:
- easily toggle the navigation mesh setting (used for Roblox’s pathfinding)
- synced with the studio setting
You can download it on the marketplace, or make a local plug-in using the code below…
local __mySettings = settings().Studio
local settingName = "Show Navigation Mesh"
local toolbar = plugin:CreateToolbar("Navigation Mesh")
local toolbarButton = toolbar:CreateButton("Show Navigation Mesh", "Toggles visibility of navigation meshes.", "rbxassetid://10002492897");
toolbarButton.ClickableWhenViewportHidden = false;
__mySettings.Changed:Connect(function()
toolbarButton:SetActive(__mySettings[settingName])
end)
toolbarButton.Click:Connect(function()
__mySettings[settingName] = not __mySettings[settingName]
end)
if __mySettings[settingName] then
toolbarButton:SetActive(__mySettings[settingName])
end