Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

AR Core - Augmented image - Prefab animation when clicking a UI button

Discussion in 'AR' started by unity_SxBeLmCDpWwY-Q, Jun 23, 2019.

  1. unity_SxBeLmCDpWwY-Q

    unity_SxBeLmCDpWwY-Q

    Joined:
    Jun 23, 2019
    Posts:
    1
    Hi Guys,

    This is my first post, I'm not usually posting on forum but I'm kind of stuck here.

    First of all, I'm no programmer so I have limited knowledge in C#, I know the basics but that's it. I've spent the last 2 days researching for an answer to no avail. I'm pretty much sure the answer is pretty easy but I can't figure it out myself.

    Ok what I'm trying to do is triggering the prefab's animations with UI button press. It's working fine when testing on a non-ARCore scene with the button but it isn't when booting the Android app. Based on my researches, the problem seems to be related to the fact that the AugmentedImageVisualizer is creating an instance of the prefab which doesn't contained the animations. Is this something easy to fix?

    I'm a t-shirt designer, having fun with Augmented reality so I don't plan on learning complex coding ;P, but I'm willing to learn and put some effort on it.

    Any helpful info to guide me will be welcome?

    Thanks a lot.