Mirror icon indicating copy to clipboard operation
Mirror copied to clipboard

Does this support unity 2020?

Open ughstudios opened this issue 2 years ago • 3 comments

This error occurs in a blank project when running with Unity 2020 LTS. Assets\Mirror\Runtime\Transports\KCP\MirrorTransport\KcpTransport.cs(306,17): error CS0103: The name 'GUILayout' does not exist in the current context

ughstudios avatar Jun 22 '22 18:06 ughstudios

Huh, why would GUILayout not be available? Does that work in your other projects?

miwarnec avatar Jun 23 '22 17:06 miwarnec

My immediate thought was that the file might have had a missing using UnityEngine; directive but that directive is snuggling between using System.Net and Mirror directives.

Sounds like a random compile error. Try restarting Unity and reinstalling Mirror from Asset Store. Restart Unity again after reinstalling Mirror. Did you mess up any ASM Definitions?

If the problem persists, your installation of Unity might be faulty. Also, please tell us what operating system and platform you're developing on/for, like are you on a Mac? Running Unity Editor on Linux? Windows 11 user? etc.

SoftwareGuy avatar Jun 24 '22 01:06 SoftwareGuy

GUI components are outdated. You need to use the new UnityEngine.UI components.

AHumanIBelieve avatar Jul 20 '22 07:07 AHumanIBelieve

not a mirror error, closing

miwarnec avatar Sep 24 '22 15:09 miwarnec