Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Discussion Script to teleport me to set points in the scene

Discussion in 'Scripting' started by Axel0689, Dec 13, 2022.

  1. Axel0689

    Axel0689

    Joined:
    May 20, 2022
    Posts:
    6
    Good morning everyone.
    As per the title I would like to make a script that:
    I open the Menu, clicking on the destination I want in the dropdown teleports me.

    upload_2022-12-13_12-25-1.png
    my Menu (which I call up using the Menu button on the Quest Controller 2)

    upload_2022-12-13_12-25-42.png
    the different positions in dropdown

    upload_2022-12-13_12-26-22.png
    several Teleportation Anchors are positioned in blue.

    I look forward to suggestions and help. Thank you.
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,595
  3. Axel0689

    Axel0689

    Joined:
    May 20, 2022
    Posts:
    6
    I didn't add that I'm doing a simulation in VR.
    Anyway The menu works. I just need to create the script to associate the dropdown button with the corresponding teleport anchor.