Avoid selecting quotes in search text as it will cause undesired behavior. Warning: The external tool runs as a command line argument. Select the text you want to search then run the external tool with preferred method (toolbar button, shortcut key, or menu option). To add a keyboard shortcut... go to Tools > Options > Environment: Keyboard and look for the command "Tools.ExternalCommand#”.
follow steps earlier above on how to add the API reference button, but instead of the command "cmdIdUnityDocumentation" choose "External Command #” under the Tools category. Replace "#" in the below two items with the number of external tools noted earlier. "file:///C:/Program Files/Unity/Editor/Data/Documentation/en/ScriptReference/30_search.html?q=$(CurText)” Make note of how many external tools there are now (it will be needed later).Įnter path to your desired browser as Command:Ĭ:\Program Files (x86)\Mozilla Firefox\firefox.exe
Other options would be to build an add-in for Visual Studio (or MonoDevelop) or ask Unity to update the existing add-in. Searching Offline Docs: By request, the below instructions provide a way to more easily search offline documentation.
Please see RedElijah's comment if you would also like to change the API Reference to open in an external browser instead of inside a Visual Studio tab. There should now be a Unity API Reference button on the toolbar This may be possible in other versions, but I only decided to do this recently.Ĭhoose the new toolbar name in the dropdown In MonoDevelop, the shortcuts are CTRL+' (Windows) or CMD+' (Mac)Īdding a Button to The Toolbar: With the tighter integration with Visual Studio mentioned in the Unity 5.2 release notes, it's fairly simple to add a button to the toolbar instead of using the shortcut keys. Go to: Debug > Options and Settings > Environment > Keyboard If you want a simpler shortcut or even to make it the same as in MonoDevelop, you can do the following. Make sure Visual Studio Tools for Unity is installed and the configuration is done.Īs djradon mentioned, the standard shortcut is CTRL+ALT+M,CTRL+H for Unity Documentation Access
You can also find a list of the analyzers here and if you are interested in learning more visit this blog post or jump directly to this part of the Unite Now talk.I realize this is an old question, but wanted to add some additional information for those that might benefit.įor those that don't have it, install Visual Studio.
It’s the sum of all parts when looking into performance optimization and Analyzers can make it easy to help you identify and improve your performance simply by reducing the unneeded overhead by optimizing the code syntax. While the above example represents a minor optimization tweak with no significant impact in a single script attached to a single GameObject, this may be different for a large scale project with 1000s of GameObjects with the script attached.
In this case, the analyzer would suggest the CompareTag method which is more efficient. The analyzer would be able to analyze your code, will detect the pattern and offer to use the more optimized method instead. An example could be a simple conditional statement where you need to check if the GameObject has a specific tag to apply a certain behavior to it. Analyzers can provide you with a better understanding of Unity-specific diagnostics or simply help your project by removing general C# diagnostics that don’t apply to Unity projects. Unity Analyzers are a collection of Unity-specific code diagnostics and code fixes that are open source and available on GitHub. An analyzer works by detecting a code pattern and can offer to replace it with a more recommended pattern.
Visual Studio 2019 introduces Unity Analyzers.