Im creating a VR movie that is interactive and the user can decide to stay on the same path or click a different path which will load a new scene. The button is a UI Canvas/button and I want that menu to pop at a certain time and If the user does not click it in lets say 7 secs it disappears. I’ve googled everything for about two days and cant come up with anything. Need help. Thanx.
You probably want something along the lines of
float timeAtLastClick = 0;
void Update()
{
if(time.deltaTime > timeAtLastClick + 7 )
{
//DoSomthing
}
}
void Click()
{
timeAtLastClick = time.DeltaTime;
}
I didn’t compile this but it should be close to what you want