Debug Console & FPS in VR | Unity Tutorial for Oculus Quest

Sdílet
Vložit
  • čas přidán 28. 08. 2024
  • Accelerate your development process with our new, ready to use VR UI PACKAGE, now on the Unity Asset Store! Link for %10 off: assetstore.uni...
    In this video I will teach you how to make a debug console inside of your VR application/game, and how to display the FPS as well. This way you can test for errors and check performance without having to the take the headset off.
    COURSE PLAYLIST: • VR Development Full Co...
    Thanks for watching!

Komentáře • 19

  • @twicke1058
    @twicke1058 Před 4 měsíci +1

    When I finished the tutorial I had an error where the console interface was not updating and showing the Logs, I was able to figure it out, I need to add the onGui(); method to the HandleLog(). I don't know how RealaryVR was able to make it work without this. But anyways thank you for the great tutorial!

  • @DenisGamer
    @DenisGamer Před 2 lety +1

    SUPER MEGA VIDEO MAN!! I I adapted the console you made for the Input System, and works perfectly, thanks for your work, new sub and like!!!

  • @HapsyGame
    @HapsyGame Před 2 lety +1

    Hey, I have a proposal, can you make a video on a Game pause menu in vr ? I like your videos keep it up !

    • @RealaryVR
      @RealaryVR  Před 2 lety +1

      Hi, that's a great idea I'll definitely look into it!

  • @brainwealthattraction
    @brainwealthattraction Před 2 lety +1

    You're videos are awesome! Keep up the great work!
    I want to create a multiplayer vr game. But its a bit difficult. Maybe you can show how you can play in vr against another player. Or join together a room and you can throw something around or so. I am learning mirror right now. But it would be awesome if you could show us how you would do that. Thanks!

    • @RealaryVR
      @RealaryVR  Před 2 lety

      Thanks! That's something advanced and I'll probably make a video about it sometime in the future. For now your best bet would be to look into how regular multiplayer works in Unity and try to adapt that to VR. Good luck!

  • @SuperSkydrake
    @SuperSkydrake Před rokem +1

    Why only 72 FPS? I cannot make 90 or 120 fps (Oculus quest 2 supports it) Do you know any solution for this?

  • @marquesghm
    @marquesghm Před 2 lety

    Wow! Great tutorial! it will help me a lot. Thanks

  • @IlanPerez
    @IlanPerez Před 5 měsíci

    will this work in the most recent version of unity?

  • @EnexS02
    @EnexS02 Před rokem

    Hey I have a question, this only display the debug content that would be printed on the console to text script right? Is there a way to make it print all the console messages onto the canvas?

  • @beardordie5308
    @beardordie5308 Před 2 lety

    Wow, this is the video where I first experienced CZcams android's Like button colorful animation. It's so enthusiastic.

  • @akakemushi439
    @akakemushi439 Před 2 lety

    this almost works for me, I'm having an issue where when I bring up the debug text box it rapidly and repeatedly displays a bunch of null reference errors. When I press the trigger, i see the intended message just fly by briefly before it's buried in the endless stream of null reference errors. Any idea what I did wrong?

    • @RealaryVR
      @RealaryVR  Před 2 lety

      Hi, that means it's working. The purpose of this debug console is to show you messages/errors while you're in VR. In your case, it's telling you that you have a null reference error, meaning it's doing its job. So go back to Unity and play your app in the editor and figure out what's causing this null error and fix it and then it won't show up. Hope this explanation helps!

    • @akakemushi439
      @akakemushi439 Před 2 lety +1

      @@RealaryVR Figured it out, TextMeshPro objects rather than legacy Text objects seem to be the default in Unity for me, so when I added the text object it was TMP, not legacy, and the script broke. I could have just deleted the TMP objects and replaced them all with legacy, but I decided to look into how I might do what you did but with TMP objects, and eventually figured it all out. It works now with 3 or 4 small changes to the FPS script. For those who may be having the same issue, here's what I changed:
      1. add "using TMPro;"
      2. change "Text fpsText;" to "TMP_Text fpsText;"
      3. change () to ()
      I think that's it.
      edit- this all assumes that you have the Text Mesh Pro package already installed and ready to use in your project. If you don't, you need to install that first.

    • @IlanPerez
      @IlanPerez Před 4 měsíci

      @@akakemushi439 I will be using this update shortly :)

    • @IlanPerez
      @IlanPerez Před 4 měsíci

      @@akakemushi439 you also need to update
      fpsText = averagefps.ToString("F1"); to fpsText.text = averagefps.ToString("F1");

  • @halvardedison1864
    @halvardedison1864 Před 2 lety

    Thanks, I needed this!!! Your content deserves a service like Promo'SM!