- Home /
press play, game objects get deleted, game breaks.
okay so i just finished this script here
#pragma strict
var maxfalldistance = -10;
function Update () {
if (transform.position.y <= maxfalldistance)
(
Debug.Log("test")
);
(
Application.LoadLevel("level 1")
);
}
with no errors in console. i them press play to test my level and all my game objects get deleted and my game ceases to work. after i stop all my game objects come back, still with no errors.
as these pictures show
this is a bug that seems to run in the unity engine but might have something to do with the script. can anyone help?
Hi, what happens when you are in play mode and you open a new "Hierarchy" tab? (to do so, right click on almost any tab title and select add new hierarchy tab). I seem to get a similar bug recently when loading/changing scenes and sometimes on play/stop. Currently, I change the hierarchy sort mode to one of our custom sorts and back.
Having the same error and cant fix it, How did you over come this problem
I have this problem but for me only some of the gameobjects delete