![]() ![]() ![]() Go to File->Build settings->Player Settings… To support any recent code in your shared project you will need to set Unity to use. Under “Other settings” make sure “Scripting Runtime Version” is set to “.Net 4.x Equivalent”, and optionally set “Api Compatibility Level*” to “.Net Standard 2.0”. In some cases you need to share Unity datatypes. Inside Unity you have access to UnityEngine, but in Visual Studio server project you do not have that. You can add a reference directly to something like: C:\Program Files\Unity\Editor\Data\Managed\UnityEngine.dll To add this you need to provide reference to UnityEngine in the shared projects. Or if you want to be able to debug into Unity code you can grab a copy of Unity’s source code on GitHub and add as a project into your solution. Just remember that there are license restrictions on use/distribution. This may be the most straight forward setup. You simply set your Visual Studio project to compile its. Either by changing the output directory, adding a post-compile script to copy file or copying it manually. Having Unity Visual Studio open will reference the.Requires you to recompile server solution any time you want Unity to pick up changes.There are some notable drawbacks to this approach. dll-file, in some cases causing file locking. In project properties you change “Output path” to put compiled files into “Assets\Libs”-folder under your Unity project. #Use unity with visual studio software#. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |