Hello,
I am on a scene with Steam VR camera rig.
When the script calls UnityEditor.AssetDatabase.ImportAsset(), the main vive menu (the one with the vive logo and the earth) appears for one second . This is very annoying as it creates a blink effect that is really blocking me.
Anyone have the same issue and found a solution ?
Thanks.
To reproduce; drop a steamVR camera rig into an empty scene and use the following script on it. Of course, use an existing asset.
using UnityEngine;
using System.Collections;
public class test : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetKeyDown(KeyCode.KeypadEnter))
{
UnityEditor.AssetDatabase.ImportAsset("Assets/temp.wav");
}
}
}