Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
249 views
in Technique[技术] by (71.8m points)

unity3d - How can I fix "Network is obsolete" in unity 2019.1.9?

enter image description here

I made a game and use "Energy bar toolkit" unity package in unity 5.3.4 so I have "Network" contax Error when I transfer from unity 5.3.4 to unity 2019.1.9 because network removed in unity 2018.2 and newer

How can I repair This Error?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

For the Future

Please don't post images of errors! Rather copy&paste the actual text of the console into your question. This helps us solving the issue faster and also allows other users with the same error to find this thread.

In general

You shouldn't make huge jumps in Unity versions. 5.3.4 is from 2015, 2019.1.9 from mid of 2019 ... you can expect a lot of API changes between over 3 years apart software versions in general.

You should rather make incremental step-wise updates and also when you do be aware of what changes each version in between brings.

When using an asset from the Asset-Store that says Unity version 5.2.1 or higher ... I would suspect maintanace kind of stopped quite a while ago and there will at minimum be some severe hickups in implementing it into most latest Unity versions over 3 years later.

UNet is obsolete

This has been known for quite a while already. It will soon be (almost) completely deprecated.

enter image description here

The fix for now

In order to still be able to use the HLAPI for now you have to go to the PackageManager (Window →Package Manager ) and find and import the Multiplayer HLAPI package.

See Packages for more information about the PackageManager and packages in general.


There might still be some changes to do and I'm not saying this will completely fix that asset. If you still have trouble you should rather directly contact the makers of the asset.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...