So i’ve followed everything ( thats what i think)
It works fine in the PlayMode(in the Editor), but when i make a Build and start it, i cant collect the Pickups.
(i use 5.50f3)
So pls help thy
schlauewurst
So i’ve followed everything ( thats what i think)
It works fine in the PlayMode(in the Editor), but when i make a Build and start it, i cant collect the Pickups.
(i use 5.50f3)
So pls help thy
schlauewurst
I have the same problem.
The game works in development but the build version does not react to collisions and ball rolls through cubes.
Win 7 32 bit. Unity 550f
Another curious thing - the date on the exe is always 24 Nov even though it was created on 22 Dec, Deleting it results in a new exe file with the same date.
Code:
using UnityEngine;
using UnityEngine.UI;
public class PlayerController : MonoBehaviour
{
public float speed;
public Text countText;
public Text winText;
private Rigidbody rb;
private int count;
void Start()
{
rb = GetComponent<Rigidbody>();
winText.text = "";
count = 0;
SetCountText();
}
void FixedUpdate()
{
float moveHorizontal = Input.GetAxis("Horizontal");
float moveVertical = Input.GetAxis("Vertical");
Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
rb.AddForce(movement * speed);
}
void OnTriggerEnter(Collider other)
{
if (other.gameObject.CompareTag("Pickup"))
{
other.gameObject.SetActive(false);
count = count + 1;
SetCountText();
if (count>=8)
{
winText.text="You win!";
}
}
}
void SetCountText()
{
countText.text = "Count: " + count.ToString();
}
}
The tags in unity update only after restarting the editor.
So to fix the problem save the scene, close unity, then open it back up and build again.