Skip to content

Build errors in Unity 6.5 beta #1032

Description

@lyonb96

Unity version: 6000.5.0b1
Fish-Networking version: 4.7.1

Description

Unity 6.5 changes Scene.handle from an int to a SceneHandle struct. As a result, parts of the code expecting Scene.handle to be an int don't compile in 6.5. Similarly, GetInstanceId() is deprecated and issues a warning to use GetEntityId() starting in 6.5 - this one doesn't prevent successful builds, but it is noisy in the console. Fixing this is a fairly straightforward task, if a bit tedious, just replacing int with SceneHandle as necessary, but I'm not sure how backwards-compatible that change would be to older versions of Unity.

Replication

  1. Create a new project in Unity 6.5
  2. Add the Fish-Networking package to the project

Expected Behavior

Package adds and builds successfully.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions