Hi!
Simple issue but I can’t seem to find a fix. I’ve added a collider to my camera and when I enable it as a trigger it fails to run. When Is Trigger isn’t enabled the following code runs and works as it’s supposed to, but I can’t figure out why it won’t run when Is Trigger is enabled. Thoughts?
void OnCollisionStay(Collision other)
{
Debug.Log("ran");
if (other.gameObject.name == "standardwrld")
{
PlayerPrefs.SetInt("WorldType", 1);
}
else if (other.gameObject.name == "lowpolyworld")
{
PlayerPrefs.SetInt("WorldType", 2);
}
}