I install unity 5.3.1.f1 and download vuforia and import it from here .
SDK Download | Engine Developer Portal.
but when build my scene i find this problem ,I can’t resolve it.
3 Answers
3@Emanshaltout The Plugin Inspector is used to select and manage target platforms for the plugins in your project. Simply select a plugin file to view its Inspector.
Try selecting x86_64 in your Build Settings as by default it is set to x86.
http://docs.unity3d.com/Manual/PluginInspector.html
http://forum.unity3d.com/threads/vuforia-5-5-9-and-unity-64bit-problem.404360/
are you usign unity 32 bits? remember vuforia is for 32 bits only.
Can you read Chinese?
I'm not quite sure which logic you want to achieve, but i'd probably do that in Update. void Update() { if( Input.GetKey("r") ) { torchBattery += 0.5f * Time.deltaTime; } } Of course this won't increase once every 2 seconds, but in small increments on every frame. I don't know if this is ok for your purpose. Shall these two things (automatic decrease over time and increase with "r") run at the same time? Then it might be easier to use two different coroutines.
– doublemax(Because of a forum bug i can't reply directly to your last question) How about this then? IEnumerator batteryTimer() { while( true ) { if( Input.GetKey("r") ) torchBattery++; else torchBattery--; yield return new WaitForSeconds(2); } } This doesn't have an exit condition though, so it would run until the coroutine is stopped.
– doublemax