How to spawn Multiple AR objects using arrows | UNITY AR Foundation

  Рет қаралды 7,352

Mohd Hamza

Mohd Hamza

3 жыл бұрын

Hi Guys,
I created this video as a request from the community. Instead of spawning one model at a time as in this video created a while ago: • Beginners guide to UNI...
Today's video will showcase how to edit the AR placement script and use it to spawn multiple AR Objects.
I have used arrows to trigger changes to the models spawned.
Please note the package version combined with the editor version is very important. In this case, I'm using:
Unity 2020.1
AR Foundation 3.1.6
ARKit 3.1.8
ARCore 3.1.8
Discord server invite: / discord
Buy me a coffee here: www.buymeacoffee.com/mohamza
Link for single model AR Placement Script: docs.google.com/document/d/1z...
Link for this video's multiple models AR Placement script: docs.google.com/document/d/1k...
Spider model : assetstore.unity.com/packages...
Placement indicator texture: www.flaticon.com/free-icon/ai...
Arrow texture: www.flaticon.com/free-icon/ri...
Hit the like button if you like my work, comment if you have any feedback/suggestions. Subscribe for more content.

Пікірлер: 25
@khairulazmin6330
@khairulazmin6330 2 жыл бұрын
Thanks! subbed👍
@neviller
@neviller 3 жыл бұрын
Awesome tutorial
@MohdHamza
@MohdHamza 3 жыл бұрын
Thanks Jandir😊
@nazirafasiha6543
@nazirafasiha6543 2 жыл бұрын
Thankyou for the tutorial! But is it possible to place the second object after I switch to follow the first object placement after i drag the object to another place by using Lean Drag?
@elif-du2mf
@elif-du2mf Жыл бұрын
Amazing tutorial. Instead of changing the scene with a button i will do this now. U saved me a lot of time. Thank you! One question, could i add text to these models and have the text also change along with the arrows?
@OGTTAKES
@OGTTAKES Жыл бұрын
hello , your idea is pretty brilliant actually i was thinking the same. Did you manage implement this? if you did i would love to know how
@elif-du2mf
@elif-du2mf Жыл бұрын
@@OGTTAKES yes ı did! with AR foundation annotations. Dilmer has a great video for it.
@sanyasanya9372
@sanyasanya9372 Жыл бұрын
can you please do one on multiple Image tracking
@thariqluckyman
@thariqluckyman 2 жыл бұрын
excuse me sir, i used 2021.2.4f1 version, why it just black screen when i build and run this, thank you
@elif-du2mf
@elif-du2mf Жыл бұрын
after ı click in the placement indicator, everything disappears except for the canvas. why can this be happening,?
@SergioRazgriz
@SergioRazgriz 3 жыл бұрын
Hi, Awesome tutorial, but is it possible to make it so the objects remain on screen after changing the model?, for example first spawn the spider, change it to the ball,spawn it, and then there is the spider and the ball at the same time
@MohdHamza
@MohdHamza 3 жыл бұрын
Hi, You can delete or comment the line where it says : GameObject enemy = GameObject.FindGameObjectWithTag("ModelTest"); Destroy(enemy); There might be a little issue with prefabs then spawning on top of each other, instead if you wish to spawn in different places i.e where your camera is looking you could modify the lines: if (placementPoseIsValid && spawnedObject == null) { PlacementPose = hits[0].pose; } and remove spawnedObject == null. Hope that works!
@pikyinglo4939
@pikyinglo4939 3 жыл бұрын
Thank you for the great tutorial! Could I ask for one modification of the script? I modified a bit the script based on your tutorials. This script is supposed to show the placement indicator again and spawn more objects when taped on it. Now, I would like to spawn multiple different AR objects by tap rather than using arrows. Could you please give me some advices. Thank you again :D
@MohdHamza
@MohdHamza 3 жыл бұрын
Really appreciate your comment. If you don't mind can you please come on the discord chat so that we don't fill this comment section with long scripts. The invite link is in the description. My response is a lengthy one. Thanks
@ramislaghour4687
@ramislaghour4687 Жыл бұрын
is it possible to share the modified script? I want to spawn more objects rather than just changing it thank you
@eve_hub
@eve_hub 9 ай бұрын
@@MohdHamza Hi there can you please share the modified scripts for this ..?
@eve_hub
@eve_hub 9 ай бұрын
@@ramislaghour4687 have you find out a way to do so ?
@ksriharsha2911
@ksriharsha2911 3 жыл бұрын
Plz post more 👍
@aravindguna352
@aravindguna352 2 жыл бұрын
your discord link is invalid please provide a valid link
@piyushassudani
@piyushassudani 3 жыл бұрын
Bro Am getting a black screen when I built and run it can you help
@MohdHamza
@MohdHamza 3 жыл бұрын
Hi Piyush, There can be many reasons for that, can you paste screenshots(link in description) of your log and explain what packages and Unity version you are working with?
@piyushassudani
@piyushassudani 3 жыл бұрын
@@MohdHamza Thanks Man for making the Tutorial it worked
@MohdHamza
@MohdHamza 3 жыл бұрын
@@piyushassudani Thanks🙂
@andykas4138
@andykas4138 Жыл бұрын
@@piyushassudani how did you solve it?
@piyushassudani
@piyushassudani Жыл бұрын
@@andykas4138 sorry Andy I did that last year and don't have the files for it but we can connect on discord and can help you there maybe you screen share
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 57 МЛН
Каха и суп
00:39
К-Media
Рет қаралды 6 МЛН
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 104 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 42 МЛН
Getting Started With ARFoundation in Unity (ARKit, ARCore)
31:20
The Unity Workbench
Рет қаралды 457 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 695 М.
AR Foundation Image Tracking - Unity Augmented Reality/AR
7:48
Dev Enabled
Рет қаралды 62 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 4,2 МЛН
Augmented reality Unity+Vuforia project_1 (Markers)
0:43
zuzimas
Рет қаралды 28 М.
Using docker in unusual ways
12:58
Dreams of Code
Рет қаралды 418 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 57 МЛН