Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

which NetworkIdentity to replace UNet NetworkIdendity, Runtime or Runtime-Editor? #132

Closed
babaq opened this issue Dec 1, 2018 · 12 comments

Comments

@babaq
Copy link

babaq commented Dec 1, 2018

In the Migrations Guide, no instruction was given about where are these NetworkIdentity Component, I only found it's in the Runtim.dll and Runtime-Editor.dll by watching the video.

So there comes the question, Which one to use? or more generally speaking, if the Editor version is attached to a game object in unity editor, will it automatically linked to Runtime version when build? what's the different between these two dlls?

@babaq babaq changed the title which NetworkIdentity to replace UNet NetworkIdendity, Runtim or Runtim-Editor? which NetworkIdentity to replace UNet NetworkIdendity, Runtime or Runtime-Editor? Dec 1, 2018
@SoftwareGuy
Copy link
Contributor

The runtime-editor one is responsible for assigning GUIDs and whatnot to assets. You should not (and probably never) be randomly grabbing the scripts from inside the DLL in the project directory inspector, instead use "Add Component" on your object's inspector. This will ensure everything is correctly weaved and whatnot on deployment.

If you don't do it this way then we cannot be certain that it'll work without issue.

@babaq
Copy link
Author

babaq commented Dec 1, 2018

I am on Unity 2018.3b12, the object inspector only shows the NetworkIdentity version of UNet, no Mirror Version found. Runtime and Runtime-Editor are properly referenced excluding Editor platform or not.

@SoftwareGuy
Copy link
Contributor

Hrm, I see how it is.

We're kinda unable to support 2018.3 beta right now as we build against Unity 2017.4 LTS DLLs. We don't have access to the dead UNET HLAPI for 2018.3 yet, but when it comes available we'll probably do a build for that version.

Stand by and wait for the other devs to chime in.

@SoftwareGuy
Copy link
Contributor

@babaq, could you link the video you were watching?

@babaq
Copy link
Author

babaq commented Dec 1, 2018

Thanks for the quick response.
the 2018.3 is close to release date, so I guess the engine dlls and the DEAD UNet are probably settled.
you could publish a guide of how to build Mirror and I could try to build it against new unity version?

anyway.

@djgaven588
Copy link

Can confirm, 2018.3 beta has issues with Add Component not listing anything from Mirror. I am having to drag from the Project window onto the object I want the script on.

@TimPickup
Copy link
Contributor

I use 2018.3 without issues - im trying to work out what issue your having so I can help. Im just setting up from scratch now to check

@babaq
Copy link
Author

babaq commented Dec 1, 2018

@SoftwareGuy it's the video in the migration

@djgaven588
Copy link

djgaven588 commented Dec 1, 2018

Could it possibly be caused by how I am using it from the Asset Store? The last update was November 4th. Perhaps something was pushed onto GitHub which fixed the issue?

@SoftwareGuy
Copy link
Contributor

@djgaven588 grab the latest autobuild, the one on the Asset Store is very outdated compared to the autobuild ones :)

@TimPickup
Copy link
Contributor

@babaq I can confirm I saw the same issue when I set up a new project in 2018.3.0b12 using latest Unity build mirror-571 (https://github.com/vis2k/Mirror/releases/download/mirror-571/Mirror.zip)

But, after setting the DLLs up correctly and then fully shutting down all copies of Unity and starting the project back up, I can now see the correct Mirror versions of components

@babaq
Copy link
Author

babaq commented Dec 1, 2018

@TimPickup confirmed Mirror-571 can be recognized by Unity 2018.3b12 after correctly referencing runtime.dll and runtime-editor.dll.

@babaq babaq closed this as completed Dec 1, 2018
James-Frowen pushed a commit to James-Frowen/Mirror that referenced this issue Mar 31, 2020
James-Frowen pushed a commit to James-Frowen/Mirror that referenced this issue Mar 31, 2020
## [30.1.2](MirageNet/Mirage@30.1.1-master...30.1.2-master) (2020-03-29)

### Bug Fixes

* client being disconnected twice ([MirrorNetworking#132](MirageNet/Mirage#132)) ([36bb3a2](MirageNet/Mirage@36bb3a2))
* client disconnected on server event never raised ([MirrorNetworking#133](MirageNet/Mirage#133)) ([9d9efa0](MirageNet/Mirage@9d9efa0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants