Software Archive
Read-only legacy content
17061 Discussions

Not able to package Unity App

kunal_b_
Beginner
962 Views

I am able to run the app using unity Default player.

But once i package the app into executable and run it.

It shows exception at

_sts=SenseManager.Init(); call of SenseToolkikManager.cs

and it shows following exception:

 

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.DockArea.OnGUI () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/GUI/DockArea.cs:601)
PXCMSenseManager:PXCMSenseManager_Init(IntPtr, IntPtr)
PXCMSenseManager:Init(Handler)
PXCMSenseManager:Init()
RSUnityToolkit.SenseToolkitManager:OnEnable() (at Assets/RSUnityToolkit/Internals/RealSenseInput/SenseToolkitManager.cs:329)

 

 

0 Kudos
4 Replies
Colleen_C_Intel
Employee
962 Views

That error can come from calling Getcomponent on the 'wrong' GameObject - you need to call it on the component associated GameObject

0 Kudos
kunal_b_
Beginner
962 Views

Kindly note that,

It is working completely fine(including Gesture Detection) using unity Player. But when i compile it into a binary it stops working and logs the above exception.

 

Regards

0 Kudos
Colleen_C_Intel
Employee
962 Views

You might look for that error at answers.unity3d.com - there's one here:

http://answers.unity3d.com/questions/157415/editor-script-nullreference-after-simple-script-ex.html

0 Kudos
kunal_b_
Beginner
962 Views

I think i fixed the issue by compiling the code to be for 32 bit Platform. Thanks for your persuasion and time. :)

0 Kudos
Reply