librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Unity Wrapper - Supplied .unitypackage is at least a month old, and current repo doesn't compile

Open lachlansleight opened this issue 8 years ago • 5 comments

Required Info
Camera Model D435
Firmware Version 05.09.02.00
Operating System & Version Win10
Platform PC / Unity
SDK Version 2.0 }
Language C# }
Segment Unity3D / VR

Issue Description

Downloading the .unitypackage (which is linked from the readme - shouldn't this be under releases?) supplies a version of the code which is quite old. I'm not exactly sure how old, but I know it's at least a month. A bunch of important changes have happened since then (most notably the addition of the ProcessingPipe) and the switch to change all classes from 'RealSense' to 'Rs'. So this needs to be updated...

I tried just cloning the entire Unity project directly, but it doesn't compile, with a bunch of problems throughout (missing methods, missing interfaces, etc.). Which means I'm stuck using a month-old version of a toolset that looks to have changed a lot in the last month!

Would be great if we could get .unitypackages released after every commit, or at least after major features are added. Alternatively, it would be great if the Unity wrapper was kept in a working state, or at least leave a note on what the most recent working commit was...

lachlansleight avatar Aug 24 '18 03:08 lachlansleight

Unity support in SDK 2.0, like support for other third-party platforms, is a 'wrapper', meaning that it is like an expansion module for the SDK rather than a core part of it. It does not necessarily receive updates in every SDK release.

The Unity wrapper received a substantial update a month ago, and undoubtedly it will continue to be added to when the opportunities arise for the development team to do so. Members of the RealSense community can create their own additions and submit a 'pull request' for them to be integrated into the SDK to help accelerate the development of the Unity wrapper.

https://github.com/IntelRealSense/librealsense/pulls

If you are using Windows, a proven shortcut for getting Unity up and running is to drag-and-drop the pre-made DLLs into the plugins folder of Unity instead of compiling it.

https://communities.intel.com/message/554794#554794

MartyG-RealSense avatar Aug 24 '18 06:08 MartyG-RealSense

Hi @lachlansleight @MartyG-RealSense You are correct. We are still in process of setting-up Unity licenses on our nightly build machines so it can become part of the nightly cycle (that's also where all the installers come when we make a release). Until then it is too easy to break, unfortunately. We will try to resolve any issues and publish new unitypackage with upcoming 2.16 release (that we are working on right now). ETA couples of days.

dorodnic avatar Aug 24 '18 08:08 dorodnic

We are still waiting on build-machine license installation to properly automate things. In meantime, you can use the following realsense.unitypackage

dorodnic avatar Aug 28 '18 07:08 dorodnic

The unity package is now generated as part of the build process. The package is available on the release page (starting on 2.16.0) - https://github.com/IntelRealSense/librealsense/releases

Or you can download it directly from here: https://github.com/IntelRealSense/librealsense/releases/download/v2.16.0/Intel.RealSense.unitypackage

matkatz avatar Aug 29 '18 07:08 matkatz

Awesome - thanks guys :)

lachlansleight avatar Sep 01 '18 21:09 lachlansleight