
So I want to use Intellisense when I open my script from Unity. And there is "Assembly-CSharp.csproj" it's 45KB and it includes my scripts. There is "RegularFight.sln" which is my projects name and which is 1KB.

Nothing changed but then clicked folder view. In solution explorer, right clicked and added "RegularFight.sln" again. I controlled the visual studio tool for Unity. So I changed it back to "open by file extension". This can happen when Visual Studio Tools for unity is not installed. When Visual Studio is opened you get 'Miscellaneous Files' and no auto-completion. But this time when I open my scripts from Unity, it doesn't open. Why does Visual Studio not working with Unity It can happen because Unity was closed then re-opened but is no longer connected to Visual Studio. I opened the external script editor, it was default "open by file extension". When I double-click a c# file in Unity, visual studio shows up. I tend to favor interfaces > classes, your mileage may vary.I can't use Intellisense in visual studio.Just as you can type the key/values you parse from PlayFab you can type the key/values you are going to update, start doing it.`let characterBaseInfo:IBaseCharInfo = JSON.string(CharacterRead.value)` *sorry that does not line up to the actual CharRead value type just trying to make the point. Type the key/values you parse from UserData, CharacterData,ItemData, etc.(This includes your args that get passed into your handlers, I find interfaces the easiest way to type these) let is blocked scope, var is not, if you have used any other language let behaves how you would have expected var to. Once they are all cleaned up your read to keep on working as you were before the migration, however I highly recommend you start making some basic TS changes to your project as you continue to work on it. Now try compiling the project, check out any of the type errors you will most likely start seeing. If all of the above is working, it is now time to "port your project"Ĭhange all your files from. Go ahead and look over that outFile to make sure you don't notice any major issues. `"outFile": "./distr/main.js",` for example To do this your going to need to change outDir to outFile in your tsconfig.json. js files running through TSC and compiling into a single main.js file The first step to this is *not* changing all your. If your feeling comfortable with all of the above, it is time to move onto porting your project. You can then follow the instructions here to see some of the features VSCode offers as well as to setup the taskrunner.

Once your comfortable with just the compiler, if you have not gotten VSCode yet go ahead and get it.

I recommend you just mess around with the compiler first before worrying about compiling your Cloud Script project. You will need node/npm for this, so if you already have them great if not, Unlike the atom plugin VSCode stops short of letting you use its built in TSC compiler, so you are going to need get a copy.

It is developed in TypeScript, backed by Microsoft, and has TS support built in.Ītom is a great editor but the primary TS plugin for it has been pretty much abandoned by its primary maintainer. The hardest part of the switch is getting setup and fixing all the errors TypeScript catches when you start using it.įirst off I recommend using Visual Studio Code. Making the switch to TypeScript is not a hard process(certainly not harder than debugging untyped code).
VISUAL STUDIO TOOLS FOR UNITY JAVASCRIPT INTELLISENSE FREE
It is a massive, poorly written dump of words, if you are confused on any part of it, feel free to post questions here or message me on the community slack. I am not familiar with getting a TypeScript development environment setup for Visual Studio, so I will post some helpful links and a process for getting started in Visual Studio Code.Ī mostly raw Copy/Paste of process I gave on the community slack today. The method I am most familiar with and that has the most support from PlayFab is to author your Cloud Script source using TypeScript and then transpile it into JavaScript using the TypeScript compiler. Good news, there are tools and methods available that get you powerful tooling features when authoring Cloud Script. This would provide better separation of concerns when working on your project. I would certainly consider moving you Cloud Script source out into a separate project or folder. I edited cloudscript in same c# unity project as client. Is there any way to get context help intellisense about server API methods in Visual studio while editing javascript of cloudscript?
