Dive Board



DLLNotFoundException: nativesensors is no real problem.

DLLNotFoundException: nativesensors is no real problem.

by Stefan on Jul 1st, 2013 23:39 PM

DLLNotFoundException: nativesensors

This message appears because the plugin is usable in Android only. the editor does not find the DLL on Windows or Mac because there is no plugin for that.
When you compile this project for the Phone there is no such error and the head tracking works.


Does anybody know how to fix it so the error message does not show up in the editor ?

Stefan

Posts: 129

Joined: 30.06.2013

dive-owner


Re: DLLNotFoundException: nativesensors is no real problem.

by kwx on Aug 3rd, 2013 01:55 AM

To get rid of the message, you need to check for #if UNITY_EDITOR first. The editor apparently treats all other conditionals as true: http://docs.unity3d.com/Documentation/M ... ation.html

For example:

<br />#if UNITY_EDITOR<br />  &#46;&#46;&#46; nothing, or stub code for non-Android mode<br />#elif UNITY_ANDROID<br />   &#46;&#46;&#46; Android specific code<br />#endif<br />

kwx

Posts: 13

Joined: 19.07.2013


Re: DLLNotFoundException: nativesensors is no real problem.

by Stefan on Aug 7th, 2013 20:28 PM

The issue is fixed in the newest version of the Dive Unity Plugin and Dive Unity Demo Project.

Stefan

Posts: 129

Joined: 30.06.2013

dive-owner


STATISTICS


Total posts: 85739


Total topics: 10261


Total members: 38623


Newest member: Daniel G.