-
Notifications
You must be signed in to change notification settings - Fork 386
User_Inst_Unity3DOnWindows
-
Please see platform support and external dependencies before.
-
Starting with version 2.1.1 of ROS#, the .NET solution supports multi-framework targeting, including
.NET Standard 2.1
and.NET (Core) 8.0
. Thus, it should work with the.NET Standard 2.1
and.NET Framework
API Compatibility Level in Unity settings, including theIL2CPP
scripting backend. However,IL2CPP
scripting backend support has only been tested to a limited extent on Windows. Full support for other platforms is not guaranteed. -
For older ROS# versions: Change scripting backend to Mono and api compatibility level to .NET Framework (.NET 4.x Equivalent for older versions), since it is required by RosBridgeClient. To do this:
- In the Unity menu, go to
Edit
>Project Settings
>Player
. - In the Inspector pane, look under
Other Settings
>Configuration
. - Set
Scripting Backend
toMono
. - Set
Api Compatibility Level
to.NET Framework
.
- In the Unity menu, go to
-
Unity 6 support has not yet been thoroughly tested. However, some community members were able to use ROS# with Unity 6.
-
For Unity versions below 2022.3, a very old version of the Newtonsoft.JSON package comes preinstalled, and it conflicts with ROS# because we already include a newer version of it. So you have to remove it but Unity may not allow. In this case, find it in the
Packages
folder (it's in the same directory with theAssets
folder) in your file explorer and remove it manually.
Next tutorial: 1.2 Installing Ubuntu on Virtual Machine
© Siemens AG, 2017-2025
-
- 1.3.1 R2D2 Setup
- 1.3.2 Gazebo Setup on VM
- 1.3.3 TurtleBot Setup (Optional for ROS2)
- 2.1 Quick Start
- 2.2 Transfer a URDF from ROS to Unity
- 2.3 Transfer a URDF from Unity to ROS
- 2.4 Unity Simulation Scene Example
- 2.5 Gazebo Simulation Scene Example
- 2.6 Fibonacci Action Client
- 2.7 Fibonacci Action Server
- 3.1 Import a URDF on Windows
- 3.2 Create, Modify and Export a URDF Model
- 3.3 Animate a Robot Model in Unity
- 4.1 Introduction to RosBridgeClient
- 4.2 Image Publication
- 4.3 URDF Transfer
- 4.4 Fibonacci Action Client/Server
- Message Handling: Readers & Writers
- Thread Safety for Message Reception
- File Server Package
- ROS-Unity Coordinate System Conversions
- Post Build Events
- Preprocessor Directives in ROS#
- Adding New Message Types
- RosBridgeClient Protocols
- RosBridgeClient Serializers
- Actions in ROS#
- Action Server State Machine Model
© Siemens AG, 2017-2025