Getting Started with Unity for Hololens2 | Tutorial
In this video, I guide you through the steps on how to setup a Unity project, build it and deploy it on Hololens2.
#tutorial #hololens #hololens2 #unity #unity3d #3d #gamedevelopment #augmentedreality #augmentedrealityapp #MixedReality
Пікірлер: 93
Man you are the best, I spent three days on some tutorials and got nothing. I admire what you have done, keep the hard work!
Clear, concise, and easy to follow. Thanks for putting this video together, I look forward to additional videos.
Thank you for this video, its a great and simple explanation of what to do to get started. I had no issues following this guide!
Nice video ! Clear and concise. Thank You! Waiting for my halolens 2 to get here.
Thanks for sharing this step by step walkthrough, great job! I subscribed, and will be sure to give you credit in my upcoming VR video series!
W video right here. This helped out a ton!
Very helpful video. Thank you!
Thank you very much! It helps me a lot.
Multiple Microsoft Tutorials contain errors, yours works great, so thanks for uploading it.
Thanks for the video!!
awesome
thanks bro!
Is there a specific Unity Hub Version that should be installed? and is there any specific Modules that needs to be installed before building the app for the Hololens 2?
Is there any way to deploy to hololens 2 using URP? I've been trying to deploy and I can get the files to deploy to the hololens 2 but the app never actually begins. No Unity splash screen or anything.
Hi, I am unable to see "Target device" under UWP. Can you please help ? Thanks
Very nice video, I don’t understand the controls at the bottom could you tell me how to move the cube and bowls in the play mode?
Hi, thanks for the tutorial! I've followed every single step and it worked in play mode, but I got a strange problem after I deployed it to HoloLens2. The deployments were successful, but then nothing appeared in scene except the splashed mesh, nothing means no unity logo, no game object. This problem has happened to all projects I created(I've also followed other tutorials and created some simple MRTK projects and image target projects), all of these projects function well in play mode, but after being deployed to HoloLens 2, none of them showed up in HoloLens 2. The solotions in Internet like Version Update, reinstallation and so on have I tried but none has worked, I really can't find out why the objects I created never show up in HoloLens2, so I'd like to ask if I can have the project you created in this tutorial, inclusive the build file, so that I can deploy it to HoloLens to see if they would show up and figure out the difference between my projects and a project without this"disappear problem".
Hey, after launching the project in the hololens (like in the video at 14:30), I cannot see the apple and the plate. It's not coming up, not showing even after several minutes. What could be the issue? Thank you in advance!
Awesome video, what did you use for the voice over? Its really good quality
@SurajPattar
2 жыл бұрын
Well said labs: wellsaidlabs.com/
Do you know why using URP everything related to MR is pink?? and I can not use the pipeline material converter
Hey nice video, I can't find die unitypackage for the directional indicator anymore. Is there a solution?
Hi Suraj! Amazing tutorial, huge regards, had no issues following. My question would be - how do I exit the simulation back to the regular window view once I'm done with the simulation?
@SurajPattar
Жыл бұрын
Just look at your wrist and press the home button.
Hello there! thank you for the video. how exactly did you manage to use the articular hand mesh (with the triangle and grey material)? Im trying to make them as my default hand mesh.
@SurajPattar
Жыл бұрын
I think it's the default mesh. I don't recall changing anything.
At the last step start with debugging and pair with code where we need to type in the code in dekstop and did u used cable or without cable. How the project run in hololens. Please guide.
Hi Suraj, nice video. I'm able to build one by just following your tutorial video.. thanks a lot. I have a question about the MRTK toolkit that you run in unity, here you show that we must open the MRTK feature tool first, then do the setting in Unity. But some other tutorials show that they can run the MRTK by opening the asset, then select a custom package, and then choosing the MRTK foundation file. What is the difference between the 2 processes? Thanks :)
@SurajPattar
Жыл бұрын
Sorry, I can't recall any other methods. Could you post the link to the other tutorials?
Hi Suraj, I'm not seeing a prompt on my PC to pair the HOLO lens could you guide me?
I am trying to connect with the Hololense emulator. The devices find each other, but Visual Studio 2019 keeps telling me that the pairing code is wrong, even though I typed it correctly. Do you have a possible solution?
I don't have the "Target device" in "Build Setting", what can I do?
I have a script where the player turns with mouse movement, how does that work with hololense?
In this video, He would guide you through the steps on how to setup a Unity project, build it and deploy it on Hololens2.
How do you get rid of that white mesh at the end.
in the visual studio its showing deployment successful and ready but in the hololens 2 device nothing is showing what to do sir
Hi Suraj, Wonderful tutorial. I was able to build the project for Hololens 2. Can you please tell me how to remove the mesh from the background once the game starts ?
@SurajPattar
Жыл бұрын
Sorry, I haven't been able to find time to work on this problem so far. I'll get back to you once I figure it out.
How can i remove the mesh lines in hololens? Thx in advance
You saved my ass
can I make a mixed reality project without hololense? we are going to borrow at our school, but while making the project is it possible to make one without hardware?
@SurajPattar
Жыл бұрын
You could use the hololens emulator or just play the project in Unity itself.
Hi Suraj, Thanks for your video. It would be great if you can let me know from where I can download the folder MRTK Tutorials?
@SurajPattar
2 жыл бұрын
Sorry for the late reply. There is no folder available right now. You need to create your own folder "MRTK Tutorials" following the tutorial.
8:28 when in game mode, i am getting an error failed to create GenericJoystickController controller Please help Suraj
When I download the MRTK, I only get the exe file, not the zip file.
Hello. I followed your tutorial and I did everything, I just didn’t add the apple and the bowl. There is just a cube. I get an error message sayin fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'ARM64’ . I used the old version of the unity like you but my vs is 2022, do you have any idea how to fix this¿
@SurajPattar
11 ай бұрын
I haven't had this problem, but a quick Google search gives this suggestion: stackoverflow.com/questions/3563756/fatal-error-lnk1112-module-machine-type-x64-conflicts-with-target-machine-typ
@SurajPattar
11 ай бұрын
And perhaps try with VS 2019,and see if it works.
8:36 I am not able to move the cube, getting a lot of errors. Could u help?
@SurajPattar
Жыл бұрын
Could you tell me what errors you are getting?
Hey, the tutorial is great, but at the end when I'm supposed to move the object (when my hand is close to the object) it just dissapear and is exiting my game. What can I do?
@SurajPattar
Жыл бұрын
I can't really tell much without any error message.
@alexaelena8680
Жыл бұрын
@@SurajPattar After I press "Start Without Debuggin" it shows me the object, and then nothing, and no errors. Everytime I press Start, this happens. Can you send me you project please? I rewatch your viedo all day with all your stepts, something is wrong.
@SurajPattar
Жыл бұрын
I'll post the link to the repo soon. I'm trying to reduce the size of the project first.
@alexaelena8680
Жыл бұрын
@@SurajPattar Okay, another question, I hope it doesn't bother you. What individual components do you have for Microsoft Visual Studio?
Reallly nice video, just one question, my app is opened in a screen, how can I fix that?
@SurajPattar
8 ай бұрын
Sorry, I don't understand. You mean the app in the hololens?
@javierdehoyos24
8 ай бұрын
@@SurajPattar yes, I have already fix it, I have upadate unity to 21.3 and visual studio to 2022. Thank you!
Hello. Why i dont have the “target device” in the build settings. I cant select hololens device.. thx in advance
@ST-ly8uf
Жыл бұрын
Me neither.
@jasondeeprose3161
Жыл бұрын
Hey, I know you posted this a long time ago, but I found the solution. It doesn't show up in the new versions of unity, only in the 2020 versions. You don't need it so everything will work fine without it :) Hope you figured that out earlier and didn't wait 3 months for the response.
@jasondeeprose3161
Жыл бұрын
@@ST-ly8uf Hey, I know you posted this a long time ago, but I found the solution. It doesn't show up in the new versions of unity, only in the 2020 versions. You don't need it so everything will work fine without it :) Hope you figured that out earlier and didn't wait 3 months for the response.
sir, i tried it, but when I click the play button that hands are not coming to move it, like in 8:32
@afthonm
Жыл бұрын
Maybe you can try holding L Shift + L Mouse Button
Hey I followed the tutorial and at first there is no error but after I enter the pair code the effect shown but after that there is nothing 14:23 there no unity logo or anything showing please help
@stanislavbramhall5599
Жыл бұрын
Got the same issue...
@SurajPattar
Жыл бұрын
After you've paired it, it takes a while for the project to build and deploy on the Hololens. I've trimmed that delay to save time. If it's not being deployed, are you getting any errors in your Visual Studio output?
i dont have a target device option and whenever i choose ARM 64- but it says that my local machine does not support running projects compiled for the ARM64 architect. Project will be built but will not run. Why is this and how do i fix this
@SurajPattar
2 жыл бұрын
Are you asking about Visual Studio or Unity? Could you mention the time-stamp you're referring to?
@moritzroh9361
2 жыл бұрын
@@SurajPattar I have the same issue. It is in unity, while changing to Universal Windows Platform :( I dont have the option "target device" aswell :(
@SurajPattar
2 жыл бұрын
@@moritzroh9361 Could you please mention the time stamp in the video or a screenshot?
@SurajPattar
2 жыл бұрын
@cmario72 Oh. I just realized your issue. Actually, it's not a problem. The program will build anyway. You can ignore that.
@ST-ly8uf
Жыл бұрын
@@SurajPattar Can you explain that?
hey. nice tutorial! did you remove the github link? greetz!
@SurajPattar
Жыл бұрын
Sorry. I don't think there was a github link. Unity projects are quite huge.
I get an error saying "Unable to start debugging". Any idea on how I can fix it? I press start without debugging yet I get this error
@SurajPattar
11 ай бұрын
It's difficult to say without the full error message. Do you have the correct VS version and the hololens connected?
@deweshgoenka6111
11 ай бұрын
@@SurajPattar nevermind I made another build for the game and it started running. Also do you think that there can be some sort of catapult/slingshot type game in the hololens 2?
I made all things but when build it is change the camera setting background color from black to sky and run in hololens inside window not in hologram
@mohamadfirzonainurroziqin9502
2 ай бұрын
Igot same problem, any idea to solve it?
Target SDK Version is disable, help me pls T_T
how to pair the hololens with virtual studio that part is soo unclear
@SurajPattar
Жыл бұрын
Is there any particular problem you are facing with the pairing? I can try to put together a small tutorial for just that.
@uncensored3448
Жыл бұрын
@@SurajPattar I did everything as shown in the video until the ip adresse part and it works fine, but I don't see where I should enter that pairing code in visual code to connect them, and when I try to compile my program I get an error panel
@SurajPattar
Жыл бұрын
@@uncensored3448 Are both your devices on the same network? The pop-up to enter the pairing code shows up if the devices can detect each other.
@uncensored3448
Жыл бұрын
@@SurajPattar YES they are both on the same network, when i click on pair it show the code, but nothing else happens , and i don't know where to type that code, actually that's the part i didn't get.
@uncensored3448
Жыл бұрын
@@SurajPattar eventually it was a compiling error, i tried to rebuild the project in unity, and this time it compiled as it should and asked me for the code in visual studio, thank you sir !
No way you just exposed your IP 192.168.0.118