Mirror
Mirror copied to clipboard
Does this support unity 2020?
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
Huh, why would GUILayout not be available? Does that work in your other projects?
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.
GUI components are outdated. You need to use the new UnityEngine.UI
components.
not a mirror error, closing