Search Unity

"2d Animation" package in Unity 2019.1.0a11

Discussion in '2D' started by drordoit, Dec 14, 2018.

  1. drordoit

    drordoit

    Joined:
    Sep 7, 2013
    Posts:
    36
    I updated to Unity 2019.1.0a11 and now I got all sort of errors from "2D animation":

    Code (CSharp):
    1. /Library/PackageCache/com.unity.2d.animation@2.0.0-preview.1/Runtime/SpriteSkin.cs(180,47): error CS1061: Type `UnityEngine.Sprite' does not contain a definition for `GetBoneWeights' and no extension method `GetBoneWeights' of type `UnityEngine.Sprite' could be found. Are you missing an assembly reference?
    Code (CSharp):
    1. /Library/PackageCache/com.unity.2d.animation@2.0.0-preview.1/Runtime/SpriteSkinUtility.cs(40,24): error CS1061: Type `UnityEngine.Sprite' does not contain a definition for `GetBoneWeights' and no extension method `GetBoneWeights' of type `UnityEngine.Sprite' could be found. Are you missing an assembly reference?
    Code (CSharp):
    1. /Library/PackageCache/com.unity.2d.common@1.0.11-preview.1/Editor/InternalBridge/InternalEditorBridge.cs(108,43): error CS0507: `UnityEditor.Experimental.U2D.Common.InternalEditorBridge.WrappedShortcutAttribute.CreateShortcutEntry(System.Reflection.MethodInfo)': cannot change access modifiers when overriding `internal' inherited member `UnityEditor.ShortcutManagement.ShortcutAttribute.CreateShortcutEntry(System.Reflection.MethodInfo)'
    Anyone can help?
     
    Last edited: Dec 14, 2018
  2. Thimble2600

    Thimble2600

    Joined:
    Nov 27, 2015
    Posts:
    165
    Try removing the package then reimporting it. I had a similar issue after upgrading to 2019 alpha.
     
  3. drordoit

    drordoit

    Joined:
    Sep 7, 2013
    Posts:
    36
    It was one of the first things I tryed. Didn't help.
     
  4. katalin297

    katalin297

    Joined:
    Jul 12, 2021
    Posts:
    2
    Sorry guys, how did you solve the problem? I have the same error when updating to 2020.f17
     
  5. MarekUnity

    MarekUnity

    Unity Technologies

    Joined:
    Jan 6, 2017
    Posts:
    207
    Which version of the package do you use?
    Here is the compatibility table from documentation:
    Package version | Unity version
    7.x.x | 2021.2 or newer
    6.x.x | 2021.1 or newer
    5.x.x | 2020.2 or newer
    4.x.x | 2020.1
    3.x. | 2019.3
    Make sure that you use package version compatible with your Unity version.