librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Assets/RealSenseSDK2.0/Scripts/AlignImages.cs(2,7): error CS0246: The type or namespace name `Intel' could not be found. Are you missing an assembly reference?

Open wxp0821 opened this issue 8 years ago • 6 comments

when I Open the Unity demo in librealsense-2.10.3 on windows10 connecting d435,there are some errors.Most errors are missing an assembly reference.how can I issue these problems?

wxp0821 avatar Apr 18 '18 06:04 wxp0821

Hi @wxp0821 We don't include the binaries in our Git repositories, but you can get them from the SDK installer. Then follow the guide at wrappers/unity to place the two libraries into their correct locations

dorodnic avatar Apr 18 '18 07:04 dorodnic

Same problem here, after I get the binaries and put in the correct folder on my unity project, everything looks to work but I can´t compile (build) I get this error :Assets/RealSenseSDK2.0/Scripts/RealSenseDevice.cs(8,7): error CS0246: The type or namespace name `UnityEditor' could not be found.

superaldo avatar Apr 19 '18 09:04 superaldo

[Realsense Customer Engineering Team Comment] Hi @wxp0821, @superaldo,

Did you follow below instructions to successfully build the Unity app? https://github.com/IntelRealSense/librealsense/tree/master/wrappers/unity For the namespace issue, you can refer to below. Try to add a new script like ‘rsEditor.cs’ and move below code in RealSenseDeviceInspector.cs to this new script. public class RealSenseDeviceInspectorEditor : Editor { … } https://answers.unity.com/questions/316805/unityeditor-namespace-not-found.html

[Realsense Customer Engineering Team Comment] Hi @wxp0821,

Please try librealsense 2.12.0. This should resolve this issue.

[Realsense Customer Engineering Team Comment] Hi @wxp0821,

Do you have any update?

[Realsense Customer Engineering Team Comment] Hi @wxp0821,

I will close this. If you have any further question, you still can re-open or create another ticket.