Hello Guest

Author Topic: boxcollider2D.offset error in Unity 4.6.1p3  (Read 6032 times)

theredace

  • Newbie
  • *
  • Posts: 2
    • View Profile
boxcollider2D.offset error in Unity 4.6.1p3
« on: January 28, 2015, 07:29:58 pm »
I recently upgraded to one of the Unity beta releases 4.6.1p3, and now after opening my project that uses tk2d I'm getting a console error from multiple tk2d scripts saying that "'UnityEngine.BoxCollider2D' does not contain a definition for 'offset'. It only gives me one error at a time, but if I comment out the line then it just gives me basically the same error from a different tk2d script (but always just one at a time).



I'm using 2D Toolkit version 2.5.0 which appears to be the latest version. Any idea what's causing this?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: boxcollider2D.offset error in Unity 4.6.1p3
« Reply #1 on: January 28, 2015, 09:52:03 pm »
I don't see that at all in 4.6.1p4 - I don't know if there was a problem specific on that patch release - all of those occurances of offset are wrapped in a define for Unity5, so the only way that could break is if the define isn't set. (UNITY_4_6).

theredace

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: boxcollider2D.offset error in Unity 4.6.1p3
« Reply #2 on: January 29, 2015, 03:17:06 pm »
Well, I reverted back to a slightly older backup of the project and the error went away. I guess something just got borked, but no idea how. Thanks for your help Unikron, and sorry for wasting your time.