- Home /
Translating GameObjects in AR onto a Panel?
Hello everyone! I just started using Unity for the first time about 2 weeks ago for a research project at my university, and I'm kind of stuck.
Basically I've taken the Andy GameObject that comes in the GoogleARCore example project (where you place Androids on detected planes through your phone's camera), and altered it to be spheres with LineRenderer components. It also calculates the distance between two of these objects in centimeters; essentially, what I've got right now is a basic measurement app, which puts down spheres wherever you tap on the screen, lines between them, and the distances in centimeters above the lines.
I now want to translate this into a room floor plan app, where once I have traced out a room's floor, I want to put the resulting GameObjects and LineRenderer components onto a Panel that appears in front of the user. The view should be top down so that it resembles a floor plan.
I've been reading up on the UI details of Unity, and I've started off with changing the render to "Screen Space- Camera", added the First Person Camera I have under the ARCore Device to the Canvas Render mode, and added a Panel to the Canvas. However now I'm unsure what the next step would be. I've never written any C# code prior to when I started using Unity, and I've no idea which scripts I would even write the code in. How do I translate 3D GameObjects onto a 2D object like a Panel?
If anyone has any ideas how to tackle this, I would greatly appreciate it!
Carl