Hi,
Have created an Augmented Reality (AR) app in Unity which displays text in AR upon scanning of QR Code.
How can I bring this into Power App Canvas App? Using PCF Control? If so, can you please guide me?

Hi,
Have created an Augmented Reality (AR) app in Unity which displays text in AR upon scanning of QR Code.
How can I bring this into Power App Canvas App? Using PCF Control? If so, can you please guide me?
Hi @PowerDigitize_1 ,
Unity-based AR content into a PCF control is a bit complex due to the different technologies involved. Here's a general approach you can consider:
Embed Unity Content: You won't be able to directly embed Unity content within a PCF control, as Unity uses a different runtime environment. Instead, you would need to host your Unity AR app externally, either on a web server or a web hosting platform. The Unity AR app could be packaged as a WebGL build for web deployment.
WebGL Build: In Unity, build your AR app for the WebGL platform. This will generate a set of HTML, JavaScript, and asset files that can be hosted on a web server.
Create a Web Page: You'll need to create a web page (HTML) that includes the necessary JavaScript code to embed and interact with your Unity WebGL build. This web page will serve as the bridge between your Power Apps Canvas App and the Unity AR content.
PCF Control: Create a PCF control within Power Apps that displays an iframe. The source of the iframe will be the URL of the web page you created in the previous step. This iframe will embed your Unity AR content into the Canvas App.
Communication: You will need to establish a communication mechanism between the Unity WebGL app and the Power Apps Canvas App. This could involve using JavaScript events or window.postMessage() to send messages between the two environments.
If this is the answer for your question, please mark the post as Solved.
If this answer helps you in any way, please give it a like.