

This scenario does not describe debugging a DLL for which you do not have the source code. Note that the scenario described here assumes that you have the source code-that is, you are developing or re-using your own first-party code, or you have the source code to a third-party library, and plan to deploy it in your Unity project as a DLL.

It does not support debugging of native code DLLs, such as those written in C++. These comments are meant to help you understand when the method is called and what its general responsibilities are.Ĭhoose the OK button to exit the wizard and insert the methods into your code.Īt this time, Visual Studio Tools for Unity only supports managed DLLs. If you want the wizard to generate comments for the methods you selected, mark the Generate method comments checkbox. Alternatively, you can choose to insert them after any method that's already implemented in your class by changing the value of the Insertion point dropdown to the location you want. Use the Framework version dropdown to select your desired version.īy default, the methods are inserted at the position of the cursor. In the Create script methods window, mark the checkbox next to the name of each method you want to add. In Visual Studio for Mac, press Cmd+ Shift+ M. In Visual Studio, position the cursor where you want the methods to be inserted, then press Ctrl+ Shift+ M to launch the MonoBehavior wizard. To create empty MonoBehavior method definitions with the MonoBehavior wizard: This feature, particularly with the Generate method comments option enabled, is helpful if you are still learning what's available in the Unity API.

You can use the MonoBehavior wizard to view a list of all the Unity API methods and quickly implement an empty definition.
