小编Ray*_*ove的帖子

找不到类型或命名空间名称"UnityEditor"

请帮我纠正这个问题.

Assets/Menu.cs(97,73):警告CS0618:UnityEditor.EditorUtility.GetAssetPath(UnityEngine.Object)' is obsolete:使用AssetDatabase.GetAssetPath'

构建Player时出错,因为脚本存在编译错误

Assets/Menu.cs(2,7):错误CS0246:找不到类型或命名空间名称"UnityEditor".您是否缺少using指令或程序集引用?

using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System;
using System.Linq;

struct ObjMaterial
{
    public string name;
    public string textureName;
}

public class Menu : MonoBehaviour { 

    public int window; 

    void Start () { 
        window = 1;

    } 

    private static int vertexOffset = 0;
    private static int normalOffset = 0;
    private static int uvOffset = 0;


    //User should probably be able to change this. It is currently …
Run Code Online (Sandbox Code Playgroud)

c# unity-game-engine

3
推荐指数
2
解决办法
5346
查看次数

标签 统计

c# ×1

unity-game-engine ×1