I just finished the roll a ball tutorial. All was well until I went through the build process.
The game works as anticipated in the editor (play) function, but when i build it; the "pickup object" script doesn't seem to be running or trigger collision is not working properly. The ball rolls right through the pickups and the UI is not updated.
**What I have tried:**
I have built several times with for windows 32 & 64 bit with the same result.
I tried full screen and windowed mode thinking the collision position may not be in sync with the render.
I have checked both output_logs and see no obvious issues.
I'm using Unity 5.6.0f3 Personal (64bit).
Thank you in advance for your assistance
-Jordan
P.S. The potentially offending script:
private void OnTriggerEnter(Collider other)
{
if (other.gameObject.CompareTag("PickUp"))
{
other.gameObject.SetActive(false);
count++;
SetCountText();
}
}
↧