#MonoBehaviour and GameObject type mixed up in builds
1 messages · Page 1 of 1 (latest)
bodyInfo.defaultItem is ModelPrefab this in the conditional still goes through during this problematic WingTip_L
Where as this bodyInfo.defaultItem.GetType().Equals(typeof(ModelPrefab)) returns false, correctly
So ModelPrefab bodyInfo.defaultItem is a MonoBehaviour, but when GetType() is checked and returns GameObject, the is keyword considers them related. But this can't be true wtf? GO is from Object, ModelPrefab is from MB which is also from Object
What's going on?
Again this only happens in builds, in my case at least?