Skip to content

InstanceID deprecation in Unity 6.5b #463

Description

@jasonpanosso

related to #462

With InstanceID being deprecated in Unity 6.5, there are a few spots in the code that will trigger compiler errors(CS0169) when attempting to use Animancer in Unity 6.5.

Currently, there are a few spots in the code that trigger CS0168 obsolete warnings for usage of InstanceID in 6.4 stable, or conversion of an int(instanceID) to entity id/game object, these are:

Packages\com.kybernetik.animancer\Editor\Serialization\SerializedComponentDataEditorWindow.cs(46,68): warning CS0618: 'EntityId.implicit operator EntityId(int)' is obsolete: 'EntityId will not be representable by an int in the future. This casting operator will be removed in a future version.'

Packages\com.kybernetik.animancer\Editor\Transition Libraries\TransitionLibraryWindow.cs(40,56): warning CS0618: 'EntityId.implicit operator EntityId(int)' is obsolete: 'EntityId will not be representable by an int in the future. This casting operator will be removed in a future version.'

Packages\com.kybernetik.animancer\Editor\Serialization\SerializedComponentDataEditorWindow.cs(73,46): warning CS0618: 'Object.GetInstanceID()' is obsolete: 'GetInstanceID is deprecated. Use GetEntityId instead. This will be removed in a future version.'

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingSolvedA solution is available here (but may not yet be included in the latest release)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions