Error creating project: error creating player because scripts compile errors in the editor

I have a Tiled2Unity plugin. When I start creating a version of my game in Unity, whether it is a standalone version or something else, I get the following error: "Error creating Player because scripts compile errors in the editor"

Then he points me to this class

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using UnityEditor;

namespace Tiled2Unity
{
    public class CircleObject : TmxObject
    {
    }
}

Can someone please help me figure out what the problem is?

+4
source share
1 answer

- script, using UnityEditor; class/API UnityEditor;. script, Editor.

Unity , script, , script .

:

1. using UnityEditor; script.

2. script Editor.

3. Unity , using UnityEditor;

, :

using UnityEditor;

#if UNITY_EDITOR 
using UnityEditor;
#endif 

# 2. script Editor. , Unity script . .

+6

Source: https://habr.com/ru/post/1671404/


All Articles