AR Foundation Object Placement - Unity Augmented Reality/AR

  Рет қаралды 32,623

Dev Enabled

Dev Enabled

4 жыл бұрын

Consider supporting the channel on Patreon: / devenabled
Unity AR:
This playlist is a collection of tutorials covering Augmented Reality in Unity including ARCore, ARKit features with the use of Unity ARFoundation as well as the Vuforia plugin.
This Video:
In this video, we build upon our plane tracking implementation and create the Object Placement script allowing us to drop selected objects onto any tracked plane.
Links:
Download projects from any complete tutorial series and more: mega.nz/#F!imQGFKgR!O0wu4xrnl...
Start of Unity AR Playlist: • Augmented Reality Play...
Unity Intro to AR: unity3d.com/how-to/create-AR-...
Android Device Install: docs.unity3d.com/Manual/andro...
Vuforia SDK developer.vuforia.com/downloa...
ARFoundation Git: github.com/Unity-Technologies...
Voxel Asset Downloaded here: maxparata.itch.io/voxel-space...
Get a FREE Pluralsight trial and support the channel: pluralsight.pxf.io/DevEnabled
My First Pluralsight Course: pluralsight.pxf.io/UnrealBlue...
My Second Pluralsight Course: pluralsight.pxf.io/UnrealCPPI...
My Third Pluralsight Course: pluralsight.pxf.io/UnrealFund...
Check out my Website: devenabled.com/
Twitter: / robbcreates
RECOMMENDED READING - Game Theory Books -
Theory of Fun for Game Design: amzn.to/2Y7a29z (Personal Favourite)
Game Feel: A Game Designer's Guide to Virtual Sensation: amzn.to/3159Dl5 (Another read I couldn't put down)
Level Up! The Guide to Great Video Game Design: amzn.to/2MkxcC8
The Art of Game Design, Second Edition: amzn.to/2JY6EVz
Rules of Play: Game Design Fundamentals: amzn.to/2YcfsA7
Game Programming Patterns: amzn.to/2YbXnC2
Drawing Basics and Video Game Art: amzn.to/2Ml6FVb
Sound Effects (BFXR): www.bfxr.net/
Get Affinity Designer: affinity.serif.com/en-gb/
Get Unreal: www.unrealengine.com/
Get Some great free assets here: www.gamedevmarket.net/ Gamedev.tv Courses - Affiliate Links:
Unreal C++ Developer: www.gamedev.tv/p/unreal-engin...
Unreal Multiplayer: www.gamedev.tv/p/unrealmultip...
Unreal Blueprints: www.gamedev.tv/p/unreal-bluep...
Blender Characters: www.gamedev.tv/p/blender-char...

Пікірлер: 30
@DevEnabled
@DevEnabled 4 жыл бұрын
In this video, we build upon our plane tracking implementation and create the Object Placement script allowing us to drop selected objects onto any tracked plane.
@mahendran671
@mahendran671 4 жыл бұрын
what if the spawned object as a rigidbody component ?does it fall or sit on plane
@neilchan1
@neilchan1 4 жыл бұрын
Hi Dev Enabled, Awesome tutorial, but do you happen to know how I can set the rotation of the object when I place it? E.g. Place the object with a -180 Y-Axis value, so that it is facing the other way.
@davidnguyen7159
@davidnguyen7159 2 жыл бұрын
Thanks so much! Great video! This is the best tutorial series I've seen. You do a really good job of walking through the code.
@rensalazar
@rensalazar 4 жыл бұрын
You're the man! Thank you for this. Much appreciated 🙇‍♀️ More power to you.
@sonyareznikova4542
@sonyareznikova4542 3 жыл бұрын
Thank you so much! Was supremely helpful, to a first-time Unity user.
@ruhlmcu
@ruhlmcu 3 жыл бұрын
Do you have recommendations for extensions in Visual Studio Code for Unity and Unity AR development? Also great videos. They are current and well done. Very professional!
@musicalbirds2928
@musicalbirds2928 3 жыл бұрын
Great channel, great video, great content. Thanks for sharing.
@DevEnabled
@DevEnabled 3 жыл бұрын
Thank you, great to hear you're enjoying it.
@Horsaz
@Horsaz 3 жыл бұрын
If I'd want to rotate my object say 90 degrees, what would I have to do? Your tutorials have really been super great!
@aarons4078
@aarons4078 Жыл бұрын
I am having trouble running this script in ios. The plane tracking works on my phone, but when I tap the screen nothing happens. The c# script isn't causing any errors in the unity editor, and all the spelling seems to be correct. Does anyone have suggestions? I'm wondering if unity updated something that may have broken the script's functionality. For instance, I noticed that in the latest version of unity, the ARRaycastmanager script accepts an optional raycast prefab, not sure if that is relevant.
@bilgehan2778
@bilgehan2778 Жыл бұрын
Hey, this is a bit late but hopefully it's helpful to anyone else that may be looking into this. Also developing an AR app for iOS and having an issue with getting the code running. What I've found so far is that if you check the Input.touchCount for every update frame it seems (at least on my end) that it is always 0 no matter where I press on the screen. As the app is not detecting a touch, it's immediately returning the result and that causes the app to not work. What's interesting is that there are not issue reports on forums or stack overflow that I can find. I will look further into this, hopefully an easy solution can be found by someone soon. Update: ok so after some testing I have found that while the new EnhancedTouch function detects touching the screen, Input.touchCount does not. Checked both arrays and enhanced touch is the only one detecting contact. For anyone else having issues, I would recommend looking into UnityEngine.InputSystem.EnhancedTouch. Update2: just to make life of future people easier here's the lines you will need to update in order to get this to work: Instead of "if(Input.touchCount > 0)" do "if(Touch.activeTouches.Count > 0)" Instead of "touchPosition = Input.GetTouch(0).position;" do "touchPosition = Touch.activeTouches[0].screenPosition" do note that there seems to be a naming collision between UnityEngine.Touch and UnityEngine.InputSystem.EnhancedTouch.Touch. You may need to prefix "Touch" with a reference to which library you're referring to (UnityEngine.InputSystem.EnhancedTouch in our case)
@ruhlmcu
@ruhlmcu 3 жыл бұрын
great tutorials. these are the best and most current I have found. I am having a very difficult time displaying 3d models that I have imported for a project. They are upside down, backwards, etc. I realize that they are displayed relative to the AR Session Origin but any manipulation I do of the rotation on either the AR Session Origin or the prefab don't seem to make a difference. Two questions. Should I manipulate the object in the graphics tool first? (Blender in this case) If so do I position the objects to a specific direction? OK a third. What file type do you recommend to import into Unity? I realize teaching people like me isn't your primary job. Thanks for any help you can provide... Curt
@marcusmarcus4765
@marcusmarcus4765 3 жыл бұрын
Same here. Did you fix this?
@Dweeh
@Dweeh 3 жыл бұрын
HitPos / HitPose was a bit confusing at first since your editor did not protest. If anyone else is wondering about that - just continue to watch - and it will be explained.
@Nikdeckreviews
@Nikdeckreviews 3 жыл бұрын
thanks for this amazing video. it just works. can you please tell me how can i move that aircraft on that tracedd plane.
@sreyaskamghoshal4939
@sreyaskamghoshal4939 3 жыл бұрын
can we remove the yellow colour of the plane detection and give a clearer view
@emiwan79
@emiwan79 4 жыл бұрын
Hi! Great tutorial!!. Wich version of ARFoundation are you using? it dont recognizes me the "Input" and the "TrackeableType" commands. Im in unity 2019 and arFoundation 2.1.8. Cheers!
@diyandassembling2907
@diyandassembling2907 3 жыл бұрын
How to measure object size from real world objects. Could you please make a tutorial on this. It will be very helpful.
@aashutoshdabhade4325
@aashutoshdabhade4325 3 жыл бұрын
Thanks for the video sir! just one query.why my prefab is rotated by 90 degrees? however though when I place an object in the unity editor, it gets placed correctly.
@tkts8782
@tkts8782 3 жыл бұрын
A late response but Unity does that! Might be a bug
@Acumen928
@Acumen928 3 жыл бұрын
Hey Mr voice, Please make a tutorial of an AR object moving independently in a room in all axis, like a butterfly or bird flying around in a room. Thank you.
@themanas100
@themanas100 3 жыл бұрын
Hi is there a way to make it so you can change the size of the object in the app itself, so that you dont need to resize your prefab outside the app urself?
@DevEnabled
@DevEnabled 3 жыл бұрын
Yep, I think most people go for a pinch and drag input option. But you could add buttons, sliders. The options are endless.
@funjay9559
@funjay9559 4 жыл бұрын
Is there a way I can change this script so i can only place it once and then it’s there forever?? I’m stuck on it
@TechDunk
@TechDunk 3 жыл бұрын
Always instantiate a new object and never touch the existing one
@tru9935
@tru9935 4 жыл бұрын
Make more videos pls sirr 😁
@VVLGANESHK
@VVLGANESHK 4 жыл бұрын
Please make more AR for unreal engine also
@DevEnabled
@DevEnabled 4 жыл бұрын
Already done it.
AR Foundation Plane Tracking - Unity Augmented Reality/AR
11:39
Dev Enabled
Рет қаралды 22 М.
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 44 МЛН
MEU IRMÃO FICOU FAMOSO
00:52
Matheus Kriwat
Рет қаралды 44 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 4,4 МЛН
How To Setup Vuforia Ground Planes And Mid Air Placement
10:45
Dilmer Valecillos
Рет қаралды 15 М.
AR Foundation Image Tracking - Unity Augmented Reality/AR
7:48
Dev Enabled
Рет қаралды 62 М.
Get Started with AR in Unity in 6 minutes!
6:59
Novaborn
Рет қаралды 130 М.
AR Foundation Plane Detection Tutorial.
10:23
Augmented Reality Gaming
Рет қаралды 11 М.
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 44 МЛН