Quantcast
Channel: Answers for "Reload Level on Collision"
Browsing latest articles
Browse All 8 View Live

Image may be NSFW.
Clik here to view.

Answer by Statement

Have you added the scenes you want to be able to load to build settings?

View Article


Answer by Bram 1

change Application.LoadLevel(myLevel)to Application.LoadLevel(0)don't change anything in the build settings (you can but it's not needed

View Article


Answer by Statement

If you're dealing with a character controller, then you should use OnControllerColliderHit.var myLevel : String; function OnControllerColliderHit (hit : ControllerColliderHit) { if (hit.gameObject.name...

View Article

Answer by Muzz 1

var myLevel : String;function OnControllerColliderHit (hit : ControllerColliderHit){ if (hit.gameObject.name == "Runner") { Application.LoadLevel(myLevel); }}

View Article
Browsing latest articles
Browse All 8 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>