Items with no label
3338 Discussions

Build exe with fail ,but work well in unity editor

FAssi1
Débutant
3 832 Visites

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 Compliments
1 Solution
MartyG
Contributeur émérite III
2 032 Visites

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.

Voir la solution dans l'envoi d'origine

0 Compliments
6 Réponses
MartyG
Contributeur émérite III
2 032 Visites

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 Compliments
FAssi1
Débutant
2 032 Visites

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 Compliments
FAssi1
Débutant
2 032 Visites

D415 is the hardware ​

0 Compliments
MartyG
Contributeur émérite III
2 033 Visites

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 Compliments
FAssi1
Débutant
2 032 Visites

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

0 Compliments
MartyG
Contributeur émérite III
2 032 Visites

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

0 Compliments
Répondre