Quantcast
Channel: Questions in topic: "unresponsive"
Viewing all articles
Browse latest Browse all 108

Why wont unity respond after i added this simple logic?

$
0
0
i added this script to move all the blocks i my editor to another location, but unity now gives me the beachball of death like it its stcuk in a loop. what happened? function Update () { var septoggle = Input.GetAxis("separate"); if (septoggle != 1) { for (var voxel : GameObject in voxelArray){ //iterates through objects in voxelArray var voxelLoc = voxel.GetComponent(voxelScript);//gets voxel origin location voxel.transform.position = Vector3(voxelLoc.x, voxelLoc.y * sep * septoggle, voxelLoc.z); } } }

Viewing all articles
Browse latest Browse all 108

Trending Articles



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