Find comands

Posts: 56
Hi guys, I'm learning C# for do my scripts but some things I do not understand well.

I need terms like "SessionType.Race" and others more, where can I find what to use?

I suppose you won't know them and I will be able to consult somewhere what are the terms that I can use to use in my script.

Anyone can help me a little bit?

Thanks in advance
Posts: 785
There are several options where you can find out what kind of data and names exist:

  1. Look in the Object Explorer in the Theme Editor (Window - Object Explorer). The Object Explorer shows everything available in the "Simulation" and "Theme" object. The Simulation object is sim data which can be accessed from the "ISimulation" object in a script. The Theme object has things related to your current theme, like your widgets and other items. You can dig through this tree view to find what is available and can see properties (and their values) and methods.
  2. Look on our Github where we share the interfaces available in the Themes SDK. This is a little bit outdated and not "live" but you do see exactly what is defined. This is limited to the sim data though, not the theme.
  3. Use Visual Studio Code to write your scripts. From the Theme Explorer you can right-click the Scripts root (or any script itself) and select "Open in VS Code Editor". If you have VS Code installed it will open a new project in VS Code with your scripts. If the C# plugin is also installed then it should (after a short while) install our ATVO package and then you will have full access to things like Intellisense and auto-complete. Here is a short guide: ATVO VS Code guide
Posts: 287
I look your video, do what it explain, but I have no intellisense so no help to find anything. Is there an other solution than "dotnet restore" to get it ?
Posts: 785
Make sure the "C# for Visual Studio Code (powered by OmniSharp)" extension is installed.

Make sure the "project.csproj" file is created. It provides the ATVO nuget package (v1.2.0 since today).

In most cases, at least after a few seconds or maybe minutes, the package will be downloaded and Intellisense should work. If not, running "dotnet restore" in the terminal should force it and should fix it in seconds. The command should return "Restore completed in xxx ms" otherwise something failed.
Posts: 287
All seems ok. But no more informations .