2

So Im wondering is there anyway you can add a hyperlink action in reality composer that can be used in web ar?

I can't seem to find an action for this?

The way I'm using the reality file on my website is like so

<a href="<...link to .reality file>" rel="ar">
   <img />
</a>

any help would be appreciated?

Smokey Dawson
  • 8,827
  • 19
  • 77
  • 152
  • 1
    Hi, does this help you? https://developer.apple.com/documentation/arkit/adding_an_apple_pay_button_or_a_custom_action_in_ar_quick_look Look at sections: "Display a Custom Banner" and "Detect a Tap" for detection of the tab. It isn't configured in Reality Composer but rather in the link it self: In short, the link is: ``` ``` – Thor_Bux Jul 21 '21 at 18:38
  • 1
    Hey @Thor_Bux not really the solution i was hoping for, however this does solve my problem! Thanks :) – Smokey Dawson Jul 21 '21 at 23:58
  • @SmokeyDawson Did you find a solution to imbed the .reality file online? – Alex Safayan Sep 16 '22 at 07:38
  • @SmokeyDawson Did you identify a way to add a URL within Reality Composer? I'd like to be able to launch a webpage if someone taps a specific object. – KDP Sep 27 '22 at 19:12
  • 1
    @KDP unfortunately no, the only way I was able to do it was via the approved answer :( – Smokey Dawson Oct 04 '22 at 03:58

1 Answers1

1

In short, the link is:

<a rel="ar" id="CustomAction" href="kids‑slide.usdz#callToAction=Browse%20API&checkoutTitle=Kids%20Slide&checkoutSubtitle=Playground%20in%20your%20backyard&price=$145"> <img src="kids-slide-thumbnail.png"> </a>

Look at sections: "Display a Custom Banner" and "Detect a Tap" for detection of the tab. It isn't configured in Reality Composer but rather in the link it self: https://developer.apple.com/documentation/arkit/adding_an_apple_pay_button_or_a_custom_action_in_ar_quick_look

Thor_Bux
  • 1,137
  • 12
  • 26