Beispiel #1
0
 protected virtual void ScaleObjectInteractor(Vector3 scaleAmount)
 {
     if (objectInteractor != null)
     {
         VRTK_SharedMethods.SetGlobalScale(objectInteractor.transform, scaleAmount);
     }
 }
 protected virtual void OnLoadedSetupChanged(VRTK_SDKManager sender, VRTK_SDKManager.LoadedSetupChangeEventArgs e)
 {
     Show(ViewingState.Status);
     if (playareaSync && currentPlayarea != null)
     {
         Transform newPlayarea = VRTK_DeviceFinder.PlayAreaTransform();
         newPlayarea.transform.position = currentPlayarea.transform.position;
         newPlayarea.transform.rotation = currentPlayarea.transform.rotation;
         VRTK_SharedMethods.SetGlobalScale(newPlayarea, currentPlayarea.transform.lossyScale);
     }
     currentPlayarea = VRTK_DeviceFinder.PlayAreaTransform();
 }