vuforia

How to script a Button press in C#, to trigger another event?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 06:25:27
问题 I'm working on Unity, w/ Vuforia. I've got Virtual buttons that I need to act like the Up/Down Arrows on the keyboard to move an object which is not in its image target, so I'm searching for the basics. My class starts like this: public void OnButtonPressed(VirtualButtonAbstractBehaviour vb){ ... } What do I need to put in this to make it act like the up button? Without these virtual buttons, my script would move the object like this: void FixedUpdate(){ float moveHortizonal = Input.GetAxis(

Possible problematic style of Toolbar

允我心安 提交于 2019-12-13 06:16:52
问题 This case is related to the following problem. In the case I believe it may be a problem with the style I'm trying to use the toolbar. I need you to stay in the Toolbar overlay, it has a drawer menu, and the lollipop operate normally, lower some versions. style.xml v21 <style name="AppTheme" parent="AppTheme.Base"> <item name="android:colorPrimary">@color/primary</item> <item name="android:colorPrimaryDark">@color/primary_dark</item> <item name="android:colorAccent">@color/accent</item> <item

Unity3d with vuforia showing 2d image when targed is detected

拥有回忆 提交于 2019-12-13 04:47:30
问题 I have a question about the way how to show simple 2d image on top of detected marker. I have followed some tutorial to show 3d model and it works fine. there is no problem with 3d. The problem starts when I want to add normal 2d object->sprite . When I add simple sprite I can't add texture and when I insert UI image it's added together with canvas and it is not showed when target is detected. The original image on editor is placed then so far that it's difficult to find it. I would be

3D object falling through ARGroundPlane

萝らか妹 提交于 2019-12-13 03:56:13
问题 I`m using Vuforia plugin Unity, I added 3D Water can to my scene, and make it child to the Ground Plane Stage, when I run the game the object occurs, I add Box Colliders to both Ground Plane Stage and the Water can, also I add rigidbody to the can , when running the game the can fall through ground (doesn't stop falling ) How Can I fix this and make water can stop falling ? I use Vuforia 7.5.26 回答1: Okay the problem is your object starts falling when you press play regardless of whether you

Unity3d - Vuforia-Unity: How to enable or disable a virtual button?

﹥>﹥吖頭↗ 提交于 2019-12-13 02:57:51
问题 Unity3d - Vuforia-Unity: How to enable or disable a virtual button? 回答1: Guess I found the solution myself!! For Unity and Vuforia: Approach #1: As every entity in Unity is a GameObject, we can find virtual button using approach below: To enable/disable a virtual button in C# script: var myVirtualBtn = GameObject.Find("myVirtualButtonName"); // gameobject name above transform settings section if(myVirtualBtn != null){ myVirtualBtn.GetComponent<VirtualButtonBehavior>().enabled = true; // Makes

Conflict with activity tags on android manifest: Unity Facebook and Vuforia in Unity3d

佐手、 提交于 2019-12-13 02:09:12
问题 Both Unity Facebook and Vuforia(AR) plugins require that I use android.intent.action.MAIN and android.intent.action.LAUNCHER in the Android Manifest. I had tried Brain's Brain's solution, but my problem can't be solved. The application can't receive the FB.Login callback. And the status of FB is OPENING. In my situation, I am using Vuforia and Unity Facebook plugin. And the Vuforia require that use android.intent.action.MAIN and android.intent.action.LAUNCHER. <activity android:name="com

Vuforia - Getting Started in Android

你说的曾经没有我的故事 提交于 2019-12-12 08:04:06
问题 Android 2.3.3 I am new to Vuforia and Augmented Reality in particular. So, please excuse me if this is very basic question. I was able to download and run the sample application from Vuforia on Text Recognition and Image Recognition. Now I set out to create a sample application(Image Targeting) of my own. Here is what I did ::: Following the steps given in Vuforia Downloaded the SDK from Vuforia. Created a Database using Target Manager in the developer console of Vuforia. Adding a Target - I

How to set background image texture after tracked found in Vuforia ImageTarget?

僤鯓⒐⒋嵵緔 提交于 2019-12-12 00:43:35
问题 I am developing AR application with Unity3D and Vuforia. I am using Vuforia ImageTarget tracking. I want to set background behind ImageTarget and it's Object after track found. How to set background image texture after tracked found in Vuforia ImageTarget? Example : I want background here this link 回答1: Actually, this is possible using a new feature of Vuforia called Extended Tracking. Select your ImageTarget and in the Inspector check the Extended Tracking box in the Image Target Behavior

Play large video on Android without lagging

非 Y 不嫁゛ 提交于 2019-12-11 17:45:56
问题 I'm developing an AR game. In a particular situation, I want to play a video, which user selected from phone gallery, in a part of scene in unity(for example on a Plane). I test unity Video Player, but that would lag so much when video size is more than 100 Mbyte and even textures doesn't display, just I can hear video sound. What should I do now? Should I write a java native plugin which stream video in java and set textures in unity? Thanks and Sorry for bad English. videoPlayer.playOnAwake

Can we use Vuforia with NativeActivity on Android

徘徊边缘 提交于 2019-12-11 16:18:40
问题 All the samples from Vuforia official website use pure Java or Java together with c++. But, my application uses only NativeActivity, in other word, it contains no java code. The question is can I use Vuforia in an application which has only c++ code? 回答1: NativeActivity is just a Java file provided by the framework: https://android.googlesource.com/platform/frameworks/base.git/+/master/core/java/android/app/NativeActivity.java Any Android app will need to handle the Android Activity Lifecycle