Unity AR - Augmented Reality Tutorial Lesson 11 - Scaling Objects OnClick
Vložit
- čas přidán 27. 01. 2024
- Unity Augmented Reality Tutorial Lesson 10
Scale an Object when selected and resize when clicked away
Needed Packages
com.unity.xr.arfoundation 5.0.7
com.unity.xr.arcore 5.0.7
Code can be downloaded from:
github.com/TemporalCoder/UnityAR
Oh my god, you are my lifesaver, sir! This is very helpful. Thank you so much for uploading this tutorial!
You're welcome. i hope your project goes well, feel free to send me images/videos of your project.
coolbeans
will you do tutorials about plane detection too as in not only detect planes but anchor a level and load it with plane detection and it stays in one place. or if you know any good tutorials could you recommend anything like that? I looked a lot but they only show how to detect a plane surface that is it.
there is vuforia out there but is kind of very different from AR foundation.
I am working on this, but turns out it is a bit tricky! Trying to pull apart the Meta SDK stuff.
I have managed to get a full room mesh, but other than basic collision, i haven't managed to use it in a way i find meaningful yet.
@@lightsandclockwork that is cool really. other than collision or so you can add a collider component to the player camera and also add a square shaped component inside the room same as games that if a user steps outside those bounds or so the game pauses. I am working on something similar but wasn't able to get much on fullscale rooms with ground plane detection and placement.
I will see what i can do. I have wanted to make a min vr game where the ground around you gets destroyed.
is it possible to scale or rotate with pinch?
Short answer is Yes :)
Long anwser is... I dont know how, never done it, but i shall look into it, thanks for the suggestion, it sounds like an interesting feature and challenge.
I have just added a video on scaling. I'll try and sort rotation out soon.
I have had some success, but didnt look good.
@@lightsandclockwork thank you! I'll try it out