- Home /
Question by
NinjaMoves · Apr 07, 2015 at 01:35 AM ·
buttonvideoscriptingbasicsvideotexturereplay
How to put replay button
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);
}
Comment
Answer by winsjansen · Apr 07, 2015 at 03:12 PM
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!