I have a 3d object and its scripted to reload the level but somehow it doesn’t replay the video texture what do i do ? btw its urgent really really urgent
function OnMouseUp()
{
Application.LoadLevel(Application.loadedLevel);
}
I have a 3d object and its scripted to reload the level but somehow it doesn’t replay the video texture what do i do ? btw its urgent really really urgent
function OnMouseUp()
{
Application.LoadLevel(Application.loadedLevel);
}
You need to make sure that the object you are clicking DOWN on have a collider, however you do not need to press UP at the collider as long as you clicked DOWN on the collider with the script attached to it’s gameobject.
You can read all about it HERE.
I hope this helps!