Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by CSH92 · Jul 31, 2017 at 07:48 AM · unity 5vuforiaargument

how to appear UI button when ImageTarget detected?

Hi i study AR about vuforia SDK in Unity i try to when detect image target appear some buttons and click that buttons appear another object and information so i create button under ui, and built it ![alt text][1]

i thought button will be appear when image target detected but button were appear before detected image target

and detected image target button take a seat side of object ![alt text][2]

how i config button appear when detected image target? and a button called some object and that object enable other button disable until called object close(or disable activity) ? thanks

Note: i disable activity button write Button1,Button2 and write script in 3d object under image target

 public GameObject Button1;
 public GameObject Button2;


 // Use this for initialization
 void Start () {
     Button1.SetActive(true);
     Button2.SetActive(true);

 }
 
 // Update is called once per frame
 void Update () {
     
 }

}

`` [1]: /storage/temp/98827-q.png [2]: /storage/temp/98829-q2.png

post by @seonho

q.png (7.5 kB)
q2.png (303.4 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by inovotm · Jul 31, 2017 at 08:11 AM

@CSH92 I didn't get your question Exactly, As per i understood

-Basically in Vuforia Image Target contains DefaultTrackableEventHandler script -Find OnTackingFound Function in it -You can either Instantiate or Enable/Disable Button in this function -On button click event Instantiate or Enable/Disable your Object and hide button Hope this helps

Comment
Add comment · Show 8 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CSH92 · Jul 31, 2017 at 08:19 AM 0
Share

@inovotm Thank you for your reply. First, I apologize for the poor English language. Your intention is that I want the button to be called when the AR image is loaded Your answer is appreciated, but I find it difficult to approach the solution in such a way When using that function, where should the buttons be displayed and the images to be displayed? Do buttons need to be below the image target? Or does it matter where the buttons are? thank

avatar image inovotm CSH92 · Jul 31, 2017 at 10:09 AM 1
Share

1) OnTrackingfound you want to display one button or image or both??

2) Button should be above the image target otherwise you won't click it or see it.

avatar image CSH92 inovotm · Jul 31, 2017 at 11:42 PM 0
Share

I do not know what OnTracking is. What does OnTracking mean when I found this button? The button appears as soon as I launch the app I want this button to be visible after loading the object through the image target, not when launching the app Also, I did not include the canvas with buttons anywhere

Show more comments
avatar image CSH92 · Aug 02, 2017 at 11:41 PM 0
Share

Thank you~! i use Ontrcking function so i can appear UI when imageTarget Detected!!

avatar image adikecapan · Sep 27, 2019 at 11:13 AM 0
Share

I know what you mean, but can i make the DefaultTrackableEventHandler for each image target? cause when i change the script, then the whole image target will apply from this script too. For Example i want to make text "Elephant" appear when image elephant target found, but also i need the "Horse" text visible when the image target horse found.

avatar image
0

Answer by CSH92 · Jul 31, 2017 at 08:14 AM

I'm sorry I can not speak English well. In summary, i will want to see the buttons when I recognize the image and load the object into the AR

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by safarez · Oct 25, 2017 at 09:07 AM

Sorry, I cant found the OnTrackingFound function. Can you snap the picture please?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

144 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Get duplication files when import package 0 Answers

Black background when the ARCamera is started 2 Answers

how to embed Unity project inside my iOS project 0 Answers

Extended tracking in unity using vuforia model target? 2 Answers

How to exactly layer/Augment a 3D object on Real-world Object? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges