Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Showcase VR/AR Camera Control Script

Discussion in 'AR' started by levi777l, Apr 27, 2021.

  1. levi777l

    levi777l

    Joined:
    Mar 13, 2014
    Posts:
    17
    tldr code at www.mr-worlds.com

    I just want to share my camera script. It doesn't look like much, but as you watch the videos remember the scene isn't moving at all, nothing moves but the camera. Yet it gives the illusion that your rotating, moving and scaling the world. You can turn your level upside down and nothing breaks. Objects can be static, Character controllers don't fall off the world, lighting can be baked. I wrote it for the Oculus, but it should work the exact same in AR. I would love to hear/see this working on a hololens! The only thing that doesn't work right is skyboxes, and that isn't a concern with AR! =P