Items with no label
3338 Discussions

Build exe with fail ,but work well in unity editor

FAssi1
Beginner
3,834 Views

however ,thank u all did before ,I have already modify the value of system enviroment ,and works well in untiy editor mode ,but ,whenever i want to build a exe with unity ,it seems not work .even the red light is off ,and i try to log the error ,It seems connected fail,I want some help from u ,it is no more time for me ..thanks a lot

0 Kudos
1 Solution
MartyG
Honored Contributor III
2,034 Views

When building a standalone exe in Unity, the scene in the editor that you want to build should be configured in the Build Settings window, accessed in the 'File > Build Settings menu option.

 

1.png

 

Once you are on the Build Settings window, do the following steps:

 

  • Click on the 'Add Open Scenes' button to add your currently open scene in the editor to the list of scenes for Unity to build into an executable.
  • Make sure that the 'Architecture' drop-down menu is set to the 'x86_64' option to tell Unity that you are building a 64-bit application.
  • Finally, click the 'Build And Run' button to build the executable.

 

2.png

 

If you are using a D415, the Unity wrapper of RealSense SDK 2.0 (or a wrapper compatible with the 400 Series cameras) is your only option to build a Unity RealSense application.

View solution in original post

0 Kudos
6 Replies
MartyG
Honored Contributor III
2,034 Views

Which RealSense SDK are you using please? Are you using the current one (RealSense SDK 2.0) or one of the older SDKs ('2016 R2' or '2016 R3'). Thanks!

0 Kudos
FAssi1
Beginner
2,034 Views

Realsense SDK2.0 is used , otherwise I think it won't work well in unity editor .is there any other setting to build a exe to do ?​

0 Kudos
FAssi1
Beginner
2,034 Views

D415 is the hardware ​

0 Kudos
MartyG
Honored Contributor III
2,035 Views

When building a standalone exe in Unity, the scene in the editor that you want to build should be configured in the Build Settings window, accessed in the 'File > Build Settings menu option.

 

1.png

 

Once you are on the Build Settings window, do the following steps:

 

  • Click on the 'Add Open Scenes' button to add your currently open scene in the editor to the list of scenes for Unity to build into an executable.
  • Make sure that the 'Architecture' drop-down menu is set to the 'x86_64' option to tell Unity that you are building a 64-bit application.
  • Finally, click the 'Build And Run' button to build the executable.

 

2.png

 

If you are using a D415, the Unity wrapper of RealSense SDK 2.0 (or a wrapper compatible with the 400 Series cameras) is your only option to build a Unity RealSense application.

0 Kudos
FAssi1
Beginner
2,034 Views

Wow....thank u very much,the problem is solved.

0 Kudos
MartyG
Honored Contributor III
2,034 Views

Awesome news! I'm very glad I could help. Have a great day!

0 Kudos
Reply