Program Visual Studio Tools for Unity

In this section, you'll find examples for using the Visual Studio Tools for Unity API.

Examples

Here are some examples that show how you can use the Visual Studio Tools for Unity APIs.

Customize project files created by VSTU

Visual Studio Tools for Unity provides a Unity-style callback during project file generation. To learn how you can modify the project file whenever it's regenerated, see Example: Project file generation.

Share the Unity log callback with VSTU

Visual Studio Tools for Unity registers a log callback with Unity to be able to stream its console to Visual Studio. If your editor scripts also register a log callback with Unity, the VSTU callback might interfere with it. To learn how you can share the Unity log callback with VSTU, see Example: Log callback.