Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

SteamVR Teleporting prefab and Do not destroy

Discussion in 'VR' started by bdeschryver, Apr 7, 2020.

  1. bdeschryver

    bdeschryver

    Joined:
    Jun 13, 2013
    Posts:
    93
    Hey guys,

    For an APP/game (PC/HTC VIVE) I am designing, I have multiple scenes and the player needs to switch from one to the other often.
    I have set my player prefab in Do not destroy so that it is shared across the scenes.

    Should I do the same for the Teleporting prefab ? Did someone do that already and are there issues ?
    I kind of think it is a waste to reload it everytime a scene loads as the settings for teleporting in all scenes are the same.

    Thanks
     
  2. bdeschryver

    bdeschryver

    Joined:
    Jun 13, 2013
    Posts:
    93
    For reference, I did set my Teleporting object to Do Not destroy (manually edited code and added this, code taken from Player script), and it works fine !