Get Started with AR in Unity in 6 minutes!

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2024

ความคิดเห็น • 212

  • @ProfitGoat
    @ProfitGoat  3 ปีที่แล้ว +38

    If you're having problems with building, try going to File -> Build Settings -> Player Settings -> Player. Then under "Other Settings" delete Vulkan from the Graphics APIs. Also, if you're using Android, set the minimum build to Android 24.

    • @samilgozuboz392
      @samilgozuboz392 3 ปีที่แล้ว

      hello how can I test my ar app realtime in unity ?

    • @iamtech4585
      @iamtech4585 3 ปีที่แล้ว

      Hi i am going to bulid smart home renovation App on unity so please help me & give me your advice

    • @shahzadmasood4511
      @shahzadmasood4511 3 ปีที่แล้ว

      I am using Unity2020.3.14f with JDK8_201U updates. It gives me multiple errors during the "Build and Run". Can you please share what combination of Unity, JDK, SDK etc. you have used on your system for this.

    • @shahzadmasood4511
      @shahzadmasood4511 3 ปีที่แล้ว +3

      OK. I have resolved the issues and errors. I am sharing solution here just in case if anyone else is faced with similar problem. What I did was to lower my SDK version in Android Studio from Level 31 to 30. Installed Update for SDK level 30 (Google ARM64) and I also changed my JDK from OpenJDK 1.8_301U to OpenJDK8.1_150. I also changed Player setting in unity before build. I changed max API level from "highest installed" to Level 29. Now I have no issues. Good luck.

    • @vjcubastreams
      @vjcubastreams 2 ปีที่แล้ว

      Would you do a video explainning the steps to connect an iPhone and also an Android tablet so we can test the thing? I have my android tablet with the developer option activated but it does nothing... Also, what would be the best way to export an app so most people can use it for free on whatever divide they have? Thank you so much! Your video is way much illustrative than the tutorials about AR in Unity website.

  • @massacred666
    @massacred666 3 ปีที่แล้ว +40

    As a designer, this was the only Unity AR tutorial I've found that works, thanks to all sorts of things being depreciated and poorly documented elsewhere. Thank you very much, young man.
    *EDIT*: I'd also really like a tutorial on using AR for something like a god game - so there's a 3d scene and you can interact with it, such as spawning different objects and colouring them using a UI. Could be pretty fun!

    • @xrmasiso
      @xrmasiso 3 ปีที่แล้ว +6

      i actually have an updated set of tutorials that will work through 2022 if you are interested!

    • @TheAyushSomani
      @TheAyushSomani 2 ปีที่แล้ว +1

      ​@@xrmasiso Hey, I am interested in those tutorials. Could you please share those?
      Thanks in advance. :D

  • @magicalflyer
    @magicalflyer 3 ปีที่แล้ว +11

    Just like TheGreatMassacre said, this is the only AR tutorial that works. Thanks! I hope you'll make another AR tutorial with image augmentation later on.

  • @caveman1905
    @caveman1905 ปีที่แล้ว +1

    love the detail in the video. I would love to see more about making the app as well for your phone and setting it all up for a game. maybe makena mulitplayer ar game and show how it works. I hope your still making videos!

  • @scottmauer7214
    @scottmauer7214 2 ปีที่แล้ว +12

    Thank for making this! I was getting a lot NullReferenceException: Object reference not set to an instance of an object.
    05-03 00:51:18.571 30490 30554 E Unity : at ARCursor.UpdateCursor () [0x00000] in :0
    05-03 00:51:18.571 30490 30554 E Unity : at ARCursor.Update () [0x00000] in :0
    ...but it was because the AR Camera that Unity installed with the AR Origin did *not* have MainCamera as a tag. I added that tag to the AR Camera and now it works!

  • @vistaero
    @vistaero 2 ปีที่แล้ว +1

    Still working to this day. Thanks a lot for making it only 6 minutes! I really don't need some 30 minutes video just to try out this feature. I hope you return to making tutorials!

  • @pangdev7327
    @pangdev7327 3 ปีที่แล้ว +7

    Nice to see a video on AR from you, I've been experimenting a few app ideas myself around this lately and I thought you explained it brilliantly! Would definitely be interested in more of this kind of content :)

    • @ProfitGoat
      @ProfitGoat  3 ปีที่แล้ว +1

      Thanks, really appreciate it! I am definitely going to try to make more of these types of videos. I think it's going to be a pretty cool industry to be a part of in the future.

    • @tweenagelightforce
      @tweenagelightforce 3 ปีที่แล้ว

      This does not work. The capsules don't generate or my fbx files. Joke.

  •  2 ปีที่แล้ว +2

    Hi. I met this bug right after finish my step at 3:37. Are there any recommendations for me. Thank you
    Assets\ARCursor.cs(9,12): error CS0246: The type or namespace name 'ARRayCastManager' could not be found (are you missing a using directive or an assembly reference?)

    • @tomtomh5
      @tomtomh5 2 ปีที่แล้ว +4

      Make sure you've added using UnityEngine.XR.ARFoundation; to your System.Collections at the top of the code.

    • @jstuffss
      @jstuffss 2 ปีที่แล้ว +1

      @@tomtomh5 i cannot add that, its not found in XR after UnityEngine and i have all my packages up to date including arcore and arkit

    • @volgalgzkaradagoglu
      @volgalgzkaradagoglu 2 ปีที่แล้ว +1

      I have the same problem

    • @luketechco
      @luketechco 2 ปีที่แล้ว

      Same issue @novaborn. Can you explain?

  • @remains7209
    @remains7209 3 ปีที่แล้ว +5

    Had to change ar session camera to main by changing tag. Then the raycast started working.

  • @Uncle_Fame1
    @Uncle_Fame1 ปีที่แล้ว +2

    I follow every step and got stuck at 3.43 My code cant find ARRaycastManager I using VS Code Unity Editor Vertion 2021.3.16f1

  • @wolfanderson9318
    @wolfanderson9318 2 ปีที่แล้ว +2

    I got completely lost at 3:30 when you started talking about the script. I don’t even know how that came up on the screen, but it isn’t doing that on my end

  • @Just_Paulo
    @Just_Paulo 2 ปีที่แล้ว +1

    I did everything exactly as the video, but i keep getting a black screen. My head gears have been on this case for 2 school days now and I can't seem to figure out how to get this to work. It's not showing the phone's camera feed. I have no idea what to do anymore

  • @Piipperi800
    @Piipperi800 ปีที่แล้ว +2

    This is mostly a great tutorial, however, I cannot get the cursor to move. I can find planes, and when not using the cursor, I can place objects wherever I want to. But when using the cursor, I can't place objects and the cursor is just placed at the start to the location where my phone was at the start of the app.

  • @lishu9120
    @lishu9120 3 ปีที่แล้ว +8

    Hi I got an error saying: Assets/ARCursor.cs(9,12): error CS0246: The type or namespace name 'ARRaycastManager' could not be found (are you missing a using directive or an assembly reference?) I added ar raycast manager to the ar session origin as you said, but there is no raycast prefab shows up. appreciate your help!

    • @katharinalandisch4516
      @katharinalandisch4516 3 ปีที่แล้ว +14

      hey, I got the same error. I could fix it with adding "using UnityEngine.XR.ARFoundation;" to the beginning of the code right beneath "using UnityEngine;" - maybe this helps you too!

    • @lishu9120
      @lishu9120 3 ปีที่แล้ว +1

      @@katharinalandisch4516 hey, your reply save my life! it works!

    • @aravindamunasinghe1487
      @aravindamunasinghe1487 3 ปีที่แล้ว

      @@katharinalandisch4516 You saved my time!

    • @annanirvana
      @annanirvana 3 ปีที่แล้ว

      @@katharinalandisch4516 THANK YOU

    • @Dodomba
      @Dodomba 3 ปีที่แล้ว

      @@katharinalandisch4516 thanks!

  • @kingsoonkit9234
    @kingsoonkit9234 2 ปีที่แล้ว +1

    This is such a nice tutorial! Had fun playing around with it

  • @larrychou1715
    @larrychou1715 3 ปีที่แล้ว +9

    Thank you for this!
    On 3:45, I'm having trouble to get those three slots appear as in your video.
    Do you know which part I might be doing it wrong?
    *When I typed public GameObject, the text GameObject didn't turn green like yours.

    • @larrychou1715
      @larrychou1715 3 ปีที่แล้ว +3

      *Update: Saw a different comment/error from Katharina L, and her suggestion of adding "using UnityEngine.XR.ARFoundation;" solved this issue!

    • @avawishingyouwell1318
      @avawishingyouwell1318 3 ปีที่แล้ว +1

      @@larrychou1715 thank you so much . i got the same problem :D

    • @DizzleEdits
      @DizzleEdits 2 ปีที่แล้ว

      @@larrychou1715 Had the same, thank you so much!!

    • @Inkognico_btm_racing
      @Inkognico_btm_racing 2 ปีที่แล้ว +2

      Do you have any solution? Have the same problem

    • @michellevawer5207
      @michellevawer5207 ปีที่แล้ว

      add:
      using UnityEngine.XR.ARFoundation;
      in the namespaces at the top

  • @Raydamick
    @Raydamick 3 ปีที่แล้ว +4

    for some reason it keeps saying that I can't use ARRaycastmanager since I am not using the right namespace, But when I tell it to use the right name space it still tells me it can't be found. any tips?

    • @J.H.hhhhhhhhh
      @J.H.hhhhhhhhh 2 ปีที่แล้ว +1

      Same here

    • @michellevawer5207
      @michellevawer5207 ปีที่แล้ว

      you added this name space exactly like this at the top of the script? (line 4)
      using UnityEngine.XR.ARFoundation;
      ?

  • @SkullKrusher017
    @SkullKrusher017 3 ปีที่แล้ว +5

    I get a black screen
    Edit: fixed. Go to build settings and check AR Kit or AR Core

  • @eeww4510
    @eeww4510 2 ปีที่แล้ว +2

    Nice Video! But I got a problem when I run my unity AR project my phone and laptop just show black screen. I have no idea how to fix this....
    Do you know how to fix this.
    My unity version is 2022.1.20f1.

  • @musicgotmelike9668
    @musicgotmelike9668 2 ปีที่แล้ว +6

    For everyone wondering why the cursor is not moving: Tag the ARCamera of the ARSessionOrigin Object as MainCamera! Hope this helps:)

    • @kohweizhen483
      @kohweizhen483 2 ปีที่แล้ว +1

      thanks, I though that my Update() not running almost half hour.

    • @zaks7
      @zaks7 2 ปีที่แล้ว +1

      Lifesaver!

  • @leodiclemente5848
    @leodiclemente5848 3 ปีที่แล้ว +4

    Hi, im tryng to build & run it, get no debug errors, make everything correct, but when i launch the app it crash right after unity's logo.
    i'm using 2020.3.18f1 Unity and Samsung s21+ with android 11 on it.
    also i'm using minimum API level to 24 and automatic for target.
    Can u help me fix this?
    Thanks

    • @logan56
      @logan56 3 ปีที่แล้ว +1

      I am getting the same issue

    • @wendyfu1780
      @wendyfu1780 3 ปีที่แล้ว +1

      Same! Did you solve this?

    • @mohamedmzalifx4659
      @mohamedmzalifx4659 2 ปีที่แล้ว

      same problem. Do you have solution ?

  • @MichelZelff
    @MichelZelff 2 ปีที่แล้ว

    I wish you'd make more! BEst AR tutorial I've seen yet

  • @YOUVISHStudios
    @YOUVISHStudios 2 ปีที่แล้ว

    3:39
    GameObject not showing in the Inspector

  • @anothermadguywastaken
    @anothermadguywastaken 2 ปีที่แล้ว +2

    For some reason I get black screen every time I try to launch it. Tried a lot of things but nothing works. I really need to fix this asap, pls help!

    • @anothermadguywastaken
      @anothermadguywastaken 2 ปีที่แล้ว +2

      UPD: Apparently, AR Foundation doesn't work with Unity Remote. Just building directly on my phone worked. Im kinda pissed bcs spent so much time to find solution

    • @mohamedmzalifx4659
      @mohamedmzalifx4659 2 ปีที่แล้ว

      @@anothermadguywastaken what doesi t mean ? can you explain please ?

  • @JordanJalles
    @JordanJalles 3 ปีที่แล้ว +9

    I've gone through this tutorial starting from the AR template provided by Unity. After building from on both Mac and PC, both platforms create the cursor at the origin point and it does not update. What should I do?

    • @AnFonE
      @AnFonE 3 ปีที่แล้ว +1

      I managed to fix this by changing the reference from the main camera in the script to the AR Camera by creating a reference to it and using that to cast the ray instead.

  • @w1sh20
    @w1sh20 3 ปีที่แล้ว +1

    Hello from Russia!
    You tried very well, I liked everything very much. I would like to continue to study from your videos)

    • @xrmasiso
      @xrmasiso 3 ปีที่แล้ว

      i make some myself too, if you want to come visit!

  • @volgalgzkaradagoglu
    @volgalgzkaradagoglu 2 ปีที่แล้ว +1

    Despite scaling down AR Cursor a lot, it still looks huge on app, and nothing happens when I click it. Months ago I couldn't even make it work, it was a syntax error so probably this one's my fault too. This is a short and great tutorial, thank you very much!

  • @HabibYo
    @HabibYo 3 ปีที่แล้ว +1

    how to change the line renderer design?

  • @mrri5155
    @mrri5155 ปีที่แล้ว +1

    I want to try it, but my Android is still the Marsmellow version 🙂

  • @aliahmed7618
    @aliahmed7618 2 ปีที่แล้ว

    Thanks for the quick and very useful tutorial. How can I hide or disable surface line edges?

  • @nanifiqueyt
    @nanifiqueyt 2 ปีที่แล้ว +1

    Nothing spawns when I press the screen

  • @andreluizbrazil1810
    @andreluizbrazil1810 2 ปีที่แล้ว

    Awesome video, Novaborn, thank you very much for this :)

  • @NoCodeFilmmaker
    @NoCodeFilmmaker 2 ปีที่แล้ว

    How can I do this but with the Echo3D SDK and without those planes showing?

  • @deedd4401
    @deedd4401 6 หลายเดือนก่อน

    just a first dab at search querry and ended up here :) i really like what i see.. so thumbs up.. just wondering , given the age of the video, how much things could have changed in unity by now. Is this all even still compatible ??? Snappy video i liked nonetheless, thanks !

  • @TheIronicExistence
    @TheIronicExistence 2 ปีที่แล้ว

    after creating new game objects in script, no new member variable slots are populated? hmm...

  • @adityasprojects7126
    @adityasprojects7126 3 ปีที่แล้ว +4

    Can u pls make a video on persistent cloud anchors.. Following which can u do a video on indoor navigation. I need this for one of my projects I have been trying to develop. there are no such videos online. Thanks

  • @ryanw5500
    @ryanw5500 2 ปีที่แล้ว

    I didn't choose universal render pipeline. Everytime I press play it takes me to a black screen even with Unity Remote. I need help.

  • @omenbarker2876
    @omenbarker2876 ปีที่แล้ว

    How to display teks in image target produk with ar foundation

  • @SkullKrusher017
    @SkullKrusher017 3 ปีที่แล้ว +1

    For some reason my cursor doesn't move with the camera it just stays in one place with the capsule

    • @dogadogan
      @dogadogan 2 ปีที่แล้ว

      I have the same issue. Were you able to fix this?

    • @SkullKrusher017
      @SkullKrusher017 2 ปีที่แล้ว

      @@dogadogan unfortunately not

    • @dogadogan
      @dogadogan 2 ปีที่แล้ว +1

      @@SkullKrusher017 I was able to fix it by changing the AR camera's tag to Main camera!

    • @SkullKrusher017
      @SkullKrusher017 2 ปีที่แล้ว

      @@dogadogan thank you so much!

    • @shakerx33
      @shakerx33 2 ปีที่แล้ว

      @@dogadogan Thanks man, you saved my day!

  • @lku0716
    @lku0716 3 ปีที่แล้ว +1

    Once I touch the screen, I want to make an object come out only once.
    Does anyone know how to do it? ㅠㅠ

  • @yairyamagucci9059
    @yairyamagucci9059 2 ปีที่แล้ว

    when i place my object, the camera switches to the main camera? Any way to fix? I tried deleting the Main Camera but then cursor doesn't move

  • @real_xeyo
    @real_xeyo 2 ปีที่แล้ว

    I can't get it to work as it keeps asking for Google AR which isn't for android

  • @vicky_ramadhan
    @vicky_ramadhan 2 ปีที่แล้ว

    How to set up button back on camera action

  • @ikhwanmz
    @ikhwanmz 2 ปีที่แล้ว

    why my 3d object not facing camera?

  • @rdvn_ckc
    @rdvn_ckc 2 ปีที่แล้ว

    Hello friends, I am making an application with augmented reality in unity. When I build my application for windows, the pc min camera does not turn on, how can I solve it? can you help me?

  • @pags6480
    @pags6480 2 ปีที่แล้ว

    Do you have any example on how to rotate the image? My target is to have a human body laying on the floor

  • @tirkdiamond
    @tirkdiamond 3 ปีที่แล้ว

    Thank you so much! I needed a small demo app to check if I can run AR apps on my phone. :D

    • @Dodomba
      @Dodomba 3 ปีที่แล้ว

      lol and for this you use this tutorial instead of nstalling a ar app you are hardcore xD

    • @tirkdiamond
      @tirkdiamond 3 ปีที่แล้ว

      @@Dodomba I had to create an AR app, so I needed to see if I can make an AR app that works on my phone 😜

  • @anangkabulprastyo1561
    @anangkabulprastyo1561 2 ปีที่แล้ว

    Hi, i have multiple object, how to add multiple object in this screen?

  • @kimcodz8011
    @kimcodz8011 ปีที่แล้ว

    4:06 how did you drag the ray cast manager to the ray cast game object? I'm having a hard time doing that haha

  • @irlsolidspace
    @irlsolidspace 2 ปีที่แล้ว +1

    Just amazing, thanks. How about an AR app where QR Codes trigger different info being displayed, including data from a web source (Like SharePoint), or step by step instructions. 1 QR code to clean coffee machine, 1 QR Code to make coffee.

  • @khoryuezhen9860
    @khoryuezhen9860 3 ปีที่แล้ว

    May I ask to make an AR marker scan to launch the app?

  • @kiddosstudio1399
    @kiddosstudio1399 3 ปีที่แล้ว +1

    my app did not work on my phone... just open and then force closed.. may u have solution for it? thanks

  • @geralcastillo5818
    @geralcastillo5818 3 ปีที่แล้ว +1

    It worked! Thanks

  • @aniyabetts3059
    @aniyabetts3059 3 ปีที่แล้ว

    Im having trouble getting my member variable slots to appear???? HELP 3:50

    • @ProfitGoat
      @ProfitGoat  3 ปีที่แล้ว

      That usually happens to me when I have an error in the code. Unity fails to compile because of the error in the code and it doesn't update the member variables.

    • @sjoerdplat8833
      @sjoerdplat8833 3 ปีที่แล้ว

      @@ProfitGoat I am having the same issue as @Aniya Betts. It seems to be due to an error in the code, it can't seem to find the object ARRaycastManager, do you know how I can fix this?

    • @joshkerber4097
      @joshkerber4097 3 ปีที่แล้ว

      You'll need "using UnityEngine.XR.ARFoundation;" (seen in @Sandeep's comment).

    • @SkullKrusher017
      @SkullKrusher017 3 ปีที่แล้ว

      @@sjoerdplat8833 how did you fix this?

    • @butzigaming3640
      @butzigaming3640 2 ปีที่แล้ว

      @@joshkerber4097 Can you help me finding the Comment?

  • @rainkaryllcarcuevas9002
    @rainkaryllcarcuevas9002 2 ปีที่แล้ว

    Assets\ARCursor.cs(36,34): error CS0029: Cannot implicitly convert type 'UnityEngine.Vector3' to 'UnityEngine.Quaternion'
    Can someone help me? Thank you

  • @trexup6716
    @trexup6716 2 ปีที่แล้ว

    im havin a problem with the script. when it's put in the ar cursor i don't have extra options its all greyed out under the name. im extremely new to coding. so plz dont give me some super technical answer

  • @GeospatialTechnologies
    @GeospatialTechnologies 3 ปีที่แล้ว +1

    Hi, I am trying to build an AR app using ARCore in Unity. I have ten
    images and ten URL links to websites; I need to link the ten images with
    those ten URL links. Simply, when I scan the image with the phone's
    camera, I want the URL to open directly. Could you help me by explaining how can I do that?

    • @avroraflorestina2314
      @avroraflorestina2314 3 ปีที่แล้ว

      In that case, wouldn't it be better to just imitate what a QR code does? I think you can make a script that when it scans the image, a link will show up but I don't think Unity supports an auto-open browser app for security purposes, so the user might need to click the link.
      Or you could go the fancy way of making a built-in browser interface and have it opened when the user scanned the image, that way there is no need to click the link or making them open the native browser.

    • @GeospatialTechnologies
      @GeospatialTechnologies 3 ปีที่แล้ว

      @@avroraflorestina2314 Thank you so much for your reply! Actually, I did it and I am sure that Unity supports an auto-open browser app. Currently, the problem is how can switch between the Links and the videos, as I have 17 scanned images; 7 images should open videos and 10 images should open links. When I scan one image the video and the link open together, but I need to open the links with the correlated images and the videos with the correlated images separately. I am stuck at this point in the C# code and I am still struggling to solve this problem. Thank you for your help!

  • @rehmanullahkhan7389
    @rehmanullahkhan7389 3 ปีที่แล้ว +1

    Please make a tutorial on video playback using XR Foundation and Unity

    • @xrmasiso
      @xrmasiso 3 ปีที่แล้ว

      i might make one too, come visit!

  • @Kalahee
    @Kalahee 2 ปีที่แล้ว

    I wonder if there is any way to maintain those position in a save file. I feel like I would probably need to set a GPS position to first origin, and whenever I load scene to offset the difference between old and new GPS position of AR origin to each placed object, am i right?.

  • @rabihasan9764
    @rabihasan9764 2 ปีที่แล้ว

    bro, I need your help. suppose I have completed a project and now i wanna set this on a constant surface to let it be seen by everyone closer to that. so how am I supposed to do that? I mean process. Please lemme know

  • @ajinjoseph1
    @ajinjoseph1 2 ปีที่แล้ว

    can i do it for web? or have to put the application in the phone

  • @kamalsaadgeekversion
    @kamalsaadgeekversion 3 ปีที่แล้ว

    Could export for ios or android using AR Foundation without changing my code ??

  • @creativeyuppie3585
    @creativeyuppie3585 2 ปีที่แล้ว +1

    Hi im trying to create a virtusl reality art gallery for my nfts can you teach me?

  • @ariyanhridoy5844
    @ariyanhridoy5844 2 ปีที่แล้ว

    hey bro I want to learn AR development what should I do?
    and do you have any tutorials series for AR learning for beginners?

  • @kalakrutidesigns3299
    @kalakrutidesigns3299 3 ปีที่แล้ว +2

    Hey nice video.. We buit an AR app.. Can we add VR mode to that app.. Plz help..

    • @ProfitGoat
      @ProfitGoat  3 ปีที่แล้ว

      If its a mobile app, I guess you can do a Cardboard app combination with your app? I don't even know if Cardboard is supported by Unity off the top of my head still, but I assume it is.

  • @JHONTHERAP
    @JHONTHERAP 3 ปีที่แล้ว

    to open app in my device(poco 3 pro xiaomi) and the acces camera a close app help my please master
    al abrir la aplicacion y ssoliciatr acceso a la camara se cierra gracias necesito ayuda

  • @jeromecostes9702
    @jeromecostes9702 3 ปีที่แล้ว

    thanks for you video, i have a question is it possible to use it for placing complex object like a house for example?

    • @SkullKrusher017
      @SkullKrusher017 2 ปีที่แล้ว

      yes you can place any game object you make

  • @mfz3
    @mfz3 2 ปีที่แล้ว

    Ok, but the last 10 seconds of the video didn't need to slap that hard XD

  • @mrcamds
    @mrcamds 3 ปีที่แล้ว

    i have a question if i want just put only one object no multiple objects what i should modify?

  • @the3dcapybara
    @the3dcapybara 2 ปีที่แล้ว

    It works for me, only when I turn off URP

  • @raivologins9299
    @raivologins9299 2 ปีที่แล้ว

    How to hide plane?

  • @virtualcity365
    @virtualcity365 3 ปีที่แล้ว +1

    Did you delete MainCamera?

    • @ProfitGoat
      @ProfitGoat  3 ปีที่แล้ว +1

      just find the camera in the hierarchy. There's a search box. Search for "cam" and you'll find it. Just delete it from there.

    • @virtualcity365
      @virtualcity365 3 ปีที่แล้ว +1

      @@ProfitGoat It's very important . Because someone didn't know that. If he build that before he didn't know . He would be false.

  • @bryanzednanreh2665
    @bryanzednanreh2665 3 ปีที่แล้ว

    Thank you so much! I did it today.

  • @Systummmyadav
    @Systummmyadav 2 ปีที่แล้ว

    Hello sir....I want a help with regarding my AR project

  • @keiranscottenock6371
    @keiranscottenock6371 2 ปีที่แล้ว

    Idk if anyone will see this but if you do I'm trying to this for ios and I keep getting this error Assets\ARCursor.cs(38,34): error CS0029: Cannot implicitly convert type 'UnityEngine.Quaternion' to 'UnityEngine.Vector3'
    Does anyone know how to fix it?

    • @ARTHUR-cd2le
      @ARTHUR-cd2le 2 ปีที่แล้ว

      yeah i had the same problem. Its a type error, go to your script. You probably have typed "transform.rotation = hits[0].pose.position;", you need to change pose.position to pose.rotation

    • @ARTHUR-cd2le
      @ARTHUR-cd2le 2 ปีที่แล้ว

      or the other way around

    • @ARTHUR-cd2le
      @ARTHUR-cd2le 2 ปีที่แล้ว

      hope it helps

  • @aniyabetts3059
    @aniyabetts3059 3 ปีที่แล้ว +1

    Can youn please do a tutorial using 2d image trcking for like a flyer to play a video with the new updated unity

    • @ProfitGoat
      @ProfitGoat  3 ปีที่แล้ว +1

      That's actually a really good idea, I'll put it on the list, thanks.

    • @tweenagelightforce
      @tweenagelightforce 3 ปีที่แล้ว

      Brah this is joke. Does not work.

  • @denizaslan6682
    @denizaslan6682 3 ปีที่แล้ว +1

    Great tutorial. thanks. Also, How can we get only 1 object with 1 touch. I do not want to change objects position after touching the screen 2nd or 3rd times.

    • @ProfitGoat
      @ProfitGoat  3 ปีที่แล้ว +5

      I haven't tested it, but you can probably try...
      1) Add a new member variable
      private GameObject placedObject;
      2) Change the Update to:
      void Update()
      {
      if (useCursor)
      {
      UpdateCursor();
      }
      if (objectToPlace != null && Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began)
      {
      if (useCursor)
      {
      if (placedObject != null)
      {
      Destroy(placedObject);
      }
      placedObject = GameObject.Instantiate(objectToPlace, transform.position, transform.rotation);
      }
      else
      {
      List hits = new List();
      raycastManager.Raycast(Input.GetTouch(0).position, hits, UnityEngine.XR.ARSubsystems.TrackableType.Planes);
      if (hits.Count > 0)
      {
      if (placedObject != null)
      {
      Destroy(placedObject);
      }
      placedObject = GameObject.Instantiate(objectToPlace, hits[0].pose.position, hits[0].pose.rotation);
      }
      }
      }
      }

    •  3 ปีที่แล้ว

      @@ProfitGoat It does'nt work. Any try another guys?

    • @AlexMartire
      @AlexMartire 3 ปีที่แล้ว

      @ Any luck?

  • @soumikchakraborty7842
    @soumikchakraborty7842 3 ปีที่แล้ว

    It says sdk value need to be updated to 24, currently its 19. Help me with it. I did change it in the player option still it doesnt work. :(

    • @xrmasiso
      @xrmasiso 3 ปีที่แล้ว

      did you figure it out? im publishing a set of tuts on using the newest unity and making sure everything works well if you are interested come visit!

  • @tobeythebullymaguire7804
    @tobeythebullymaguire7804 3 ปีที่แล้ว +5

    Thank you for the great tutorial !! You deserve more views !
    Btw, I have no problem when exporting to android and the AR also works fine. Its just that the ar cursor is too close to the camera view.
    Do you happen to know why ? Because I already tried to scale down the ar cursor image size to 0.05 in the inspector but still the ar cursor too close to the camera.

    • @ProfitGoat
      @ProfitGoat  3 ปีที่แล้ว +2

      Weird... The only thing I can think of is the cursor is still too big or maybe you a plane wasn't detected yet so the cursor is at the origin position (which is the same position you started your phone at). Did you try the GitHub repo I uploaded? You should try that and let me know if it works for you. I can make some updates to the repo if it doesn't work because my goal was for it to work outside of the box.

    • @ProfitGoat
      @ProfitGoat  3 ปีที่แล้ว

      And thanks for the compliment!

    • @tobeythebullymaguire7804
      @tobeythebullymaguire7804 3 ปีที่แล้ว

      @@ProfitGoat Hi, I tried your github repo but when I import it into an empty Unity project, it displays this error: Library\PackageCache\com.unity.render-pipelines.core@10.3.1\Runtime\Textures\TextureXR.cs(42,45): error CS0117: 'GraphicsDeviceType' does not contain a definition for 'PlayStation5'

    • @ProfitGoat
      @ProfitGoat  3 ปีที่แล้ว +1

      @@tobeythebullymaguire7804 Check out this thread I found online: forum.unity.com/threads/universal-render-pipeline-and-unity-2020-2.1061450/ They say a more up to date Unity version may fix the error?

    • @tobeythebullymaguire7804
      @tobeythebullymaguire7804 3 ปีที่แล้ว +1

      @@ProfitGoat Oh I see because right now my project is not set in URP. Just a normal project without URP environment. Is it possible that could be the cause ?

  • @SergioRazgriz
    @SergioRazgriz 3 ปีที่แล้ว

    Hi,great tutorial, is there anyway to make it so it places different objects,for example first a red cube, then selecting a blue cube , and place that one, thanks :)

  • @Hemanutd14
    @Hemanutd14 3 ปีที่แล้ว

    Hey I'm trying to build the app, it shows me "UnityEditor.BuildPlayerWindow+BuildMethodException" : 2 errors
    How do I resolve it?

    • @LoayAltal
      @LoayAltal 2 ปีที่แล้ว

      turn off vulkun as per the pinned comment

  • @leeanthonyamoin3507
    @leeanthonyamoin3507 3 ปีที่แล้ว

    I'm using a free version of Unity, can I still use AR Foundation?

    • @bez_topora
      @bez_topora 3 ปีที่แล้ว

      yes

    • @xrmasiso
      @xrmasiso 3 ปีที่แล้ว +1

      yeah, that should not be a problem. i am making a tutorial that goes through all the free programs you can use for this.

  • @130rne
    @130rne 2 ปีที่แล้ว

    ViewportToScreenPoint is a vector3

  • @GOOD_MOTHER
    @GOOD_MOTHER 2 ปีที่แล้ว

    nice tutorial :D

  • @theanoano
    @theanoano 3 ปีที่แล้ว

    Thank youuu!!

  • @davidson4101
    @davidson4101 3 ปีที่แล้ว +2

    amazing

    • @ProfitGoat
      @ProfitGoat  3 ปีที่แล้ว

      Thanks for the compliment!

    • @davidson4101
      @davidson4101 3 ปีที่แล้ว

      i am brazilian i know a channel that create games they are brazilian help them?

  • @chouroukkaidi8955
    @chouroukkaidi8955 3 ปีที่แล้ว +3

    when I run and build the app, my android shows a black screen even when the app was build successfully .. I've tried many methods to fix that but still didn't find the solution .. could anyone help me, please

    • @AnFonE
      @AnFonE 3 ปีที่แล้ว

      Did you manage to fix this? Does the app just close? If so, read my comment above.

    • @noahhuelsman
      @noahhuelsman 2 ปีที่แล้ว

      you may have to enable the XR management packages again in Package Manager

    • @mohamedmzalifx4659
      @mohamedmzalifx4659 2 ปีที่แล้ว

      hi! did you find a solution ? i have same problem

  • @creemcheem
    @creemcheem 2 ปีที่แล้ว

    This doesnt work; Same problem as others in the comments. The cursor appears at origin and just sits in the same place, despite planes clearly being displayed on screen.

    • @creemcheem
      @creemcheem 2 ปีที่แล้ว

      Update: Found from another comment - under AR Session Origin, right click AR Camera, and click properties. Then near the top of that window, under 'tag' change that to MainCamera.

  • @alteredalley
    @alteredalley ปีที่แล้ว

    ❤❤❤❤❤

  • @sangeetsargamsagar4639
    @sangeetsargamsagar4639 3 ปีที่แล้ว +2

    Make a dart game in ar ... 😁
    Just a flat cylinder... With some darts to shoot

    • @ProfitGoat
      @ProfitGoat  3 ปีที่แล้ว +1

      Nice!

    • @sangeetsargamsagar4639
      @sangeetsargamsagar4639 3 ปีที่แล้ว

      @@ProfitGoat waiting ❤️❤️
      Or make a Combat game like old console games . 1v1 fist fights .. with local 2 player VR... So two kids can compete on ar in reality!

  • @abeldaniel216
    @abeldaniel216 2 ปีที่แล้ว

    using a vuforia

  • @saberpotatoboy4151
    @saberpotatoboy4151 3 ปีที่แล้ว

    Every time i try press run on xcode for mac, i get the error "Build Failed: 14174 duplicate symbols for architecture arm64". Could someone help me with this?

    • @xrmasiso
      @xrmasiso 3 ปีที่แล้ว +1

      can you check what the xcode log says when it outputs that error? i also make tutorials on my channel and might be able to help

    • @luketechco
      @luketechco 2 ปีที่แล้ว

      Change the bundle identifier to a unique name (can be anything) in Project Settings.

  • @thebaltsology246
    @thebaltsology246 3 ปีที่แล้ว

    This help me a lot, I was able to put new object on my AR. the question now is how to rotate it.

  • @rsrivishwanath6724
    @rsrivishwanath6724 2 ปีที่แล้ว

    not working as intended😶

  • @Etash-Gupta
    @Etash-Gupta 2 ปีที่แล้ว

    Basiclly 7 minute it is 6:59 minutes

  • @ibrahimgadli2583
    @ibrahimgadli2583 3 ปีที่แล้ว +2

    Was too fast in some areas

    • @ProfitGoat
      @ProfitGoat  3 ปีที่แล้ว +2

      That's what happens when you cram a bunch of content in 6 minutes unfortunately. :'(

  • @tweenagelightforce
    @tweenagelightforce 3 ปีที่แล้ว +1

    This does not work. Just a floating pink disc. Waste of time.

  • @nooruddinzeeshan918
    @nooruddinzeeshan918 3 ปีที่แล้ว

    you have 290 subs but still able to monetize it?

  • @l3igK
    @l3igK 2 ปีที่แล้ว

    Hey Ik its been a while but can you make a new tut just for me PloX :)
    If you respond I will leave you my idea. maybe you could even help me create my app idea, it has a good use case!

  • @jstuffss
    @jstuffss 2 ปีที่แล้ว

    ugh this is rough.... you use os dependent code after saying its ios and android but foundation and its arrarcycast manager ar android only. then later youre typing code and the instant you get it done you blip to another screen so the viewer has to rewind and pause on the perfect time.... so stupid.
    dont even get me started on your voice....