wrld3d / unity-api

Issue tracking for the WRLD Unity SDK
28 stars 8 forks source link

API Key empty on Android. #86

Closed RedYggdrasil closed 3 years ago

RedYggdrasil commented 6 years ago

Hi, I encounter what seam to be a bug in the plugin while building on Android, the maps where not appearing and the log say I have no key.

The plugin work correctly in the editor, I entered the key in the component, the map load itself in editor, I saved the map, restarted unity but still no key on Build, it look like the key is not passed in the build version.

Device : Samsung S8 Unity : 2018.1.1f1 Plugin version snapshot to fix shader problem : http://cdn1.wrld3d.com/unity/wrld.unity.sdk-SNAPSHOT.zip

screenshot_20180525-171602_carte de visite

tommymacdonald commented 6 years ago

Hi,

This is a bug we have tracked internally. The Examples scene included in our SDK features multiple WrldMap components - after adding an API key to one WrldMap component, the key should be present across other WrldMap components, but is currently only functioning correctly when running the scene in-editor.

The current workaround is to select each GameObject with a WrldMap script attached in the hierarchy in the Unity editor; this should cache the API key correctly in all of them. If you then save your scene and re-build to your device, you should not encounter this issue.

Apologies for the inconvenience, and please let us know if you encounter any further issues.

Kind regards, Thomas

ghost commented 3 years ago

This is fixed in the v0.8 SDK release