Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
It seems like a complicated and unclear question as I am not a professional in Unity and C#. I am stuck at this point for 2 months ago and I do not know if is it possible to do that or not . Briefly, I am trying to play video clips Or open the web pages URLs from 17 image markers. I successfully played the video clips but the web pages URLs do not open. I do not know the function of URLs what should I call inside my C# code and where I should put it in start, update or anywhere. Mainly, I used a tricky method in my AR app as I put the 17 images markers in database and created the quad that I renamed to AugmentedImageVisualizer and then I placed it in Prefabs. And then I placed the video clips and the web pages URLs in the inspector as in the attached image. In addition, I created the AugmentedImageController script to control in update the images. At the end, my videos appear on ref. images, but the web pages URLs do not open because I did not call the function of URLs in the C# code. Any help will be appreciated!

This is my C# code where I need to call the function of URLs to open them from the inspector on ref. images.

What I have tried:

This is the attached image from my Unity project shows the fields of video clips and web pages URLs in the inspector.
Posted
Updated 16-Aug-21 3:43am
v5
Comments
Richard Deeming 11-Aug-21 3:52am    
There is no "urls function" in the code you have shown. Nobody can help you solve a problem if you can't describe it clearly.

1 solution

That code won't even compile on it's own. For example this line:
Url _url = (uri);
Which makes no sense at all, and there is nothing in that code that is named "uri" so even if the spurious brackets weren't there, we'd have no idea what it was meant to do.

There is no function I am aware of called "urls" - though there are plenty of URL based methods in Unity: unity3d urls - Google Search[^]

And we have no idea what that chunk of "code" is supposed to do so even if we could compile it we would have no way to tell what needs doing.

You need to learn how to ask a question! Start here: Asking questions is a skill[^] and think about what you need to know, and what you need to tell us in order to get help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900