Unity Scripting
Programming Unity with C#
Last updated
Programming Unity with C#
Last updated
Unity Scripting is done with C# scripts. All realvirtual.io functionality is done based on C# Scripting. The possibilities are endless. As an editor you need to have a C# editor like Visual Studio or Rider installed. You can find a lot of information about C# and C# scripting on the Internet. For a full documentation of the Unity API please go to this page:
If you are already a programmer you might prefer to use C# scripts instead of the visual scripting approaches like Logicsteps, Unity Visual Scripting or Playmaker Visual Scripting.
Before scripting in C# you need to install Visual Studio or Rider. Please check the documentation on the Unity website about installing Visual Studio:
Please make sure, that your scripting environment is linked as external tool like shown below:
Most important thing is, if you wan to use realvirtual.io classes and properties, to embed it by putting this using in front of your code (or alternatively put your code into the
using game4automation;
Here is a small example of a PLC like script for controlling a Drive based on a Sensor: