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.

Question scaling in editor but not in VR

Discussion in 'VR' started by BJump, Jul 15, 2023.

  1. BJump


    Apr 30, 2023
    this link is to see whats happening.

    I want the items that i pick up to change from their original size to about 6" by the time they reach my hand, i seem to have done that part no problem, in the editor if the item is picked up it shrinks as it moves to my hand.

    however, in game view, through the headset camera, the item does not shrink to fit in your hand, it stays full size. what would be causing it to behave properly in editor screen but not in game screen?

    the code is done to change the size by the percentage it moves between its starting point and the player point, so theoretically in the video clip attached (game screen is the bottom screen) the object should visually stay the same size but be moving closer, instead its actually staying the same size so visually getting larger as it gets closer. when you look at the top screen its obviously getting much smaller as it gets closer to the player, that is the desired effect.

    dont know if it being VR actually has anything to do with this.

    some more info, even tho i dont think its relevant: developing for Meta Quest, the resize script is attached to the object itself and activated when object is selected by the ray interactor, player doesnt have any ability to move other than physical movement