- Home /
Question by
IvanAlvarez · Nov 13, 2014 at 06:08 PM ·
colliderupgradeupgrading
Colliders not moving with its gameobject after upgrade to 4.6
After the upgrade, when I run the game, the sprite moves buts the collider on the same gameobject does not.
The collider is in the red circle, should be in the same position as the white rectangle sprite. The inspector shows the gameobject in question
collider.png
(140.4 kB)
Comment
Best Answer
Answer by IvanAlvarez · Nov 13, 2014 at 06:59 PM
This is a bug in 4.6.0b21. It is being worked on by unity staff.
A script like this on the same gameobject as each collider will let you at least work in the meantime:
using UnityEngine;
using System.Collections;
public class ColliderBugFix46rc1 : MonoBehaviour {
void Start () {
collider2D.enabled = false;
collider2D.enabled = true;
}
}