lgsvl / simulator

A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Other
2.26k stars 778 forks source link

How can I use Unity scripts in SVL? #1467

Open fruffers opened 3 years ago

fruffers commented 3 years ago

Hello,

I have made some Unity scripts previously that are UI elements and spawning objects, how do I go about integrating these into SVL when building from source?

Many thanks.

EricBoiseLGSVL commented 3 years ago

You can place the scripts in Assets/Scripts/Name/. Then write code in existing simulator classes for your use case to enable these new classes. Build a new binary with Simulator -> Build... Build Simulator for your OS.