Fixed the build error associated with UnityEditor