小编zCU*_*CUa的帖子

Visual Studio 代码 Intellisense 无法与 Unity 引擎一起使用?

我目前正在处理 C# 文件,而我的 Intellisense 似乎不适用于 Visual Studio Code。我尝试生成所有 .csproj 文件以及下载 .Net Framework dev pack 4.2 并将 Api 兼容性级别相应更改为 .NET 4.x。一个有用的智能感知示例是简单的,例如

Vector2 touchPosition = Camera.main.ScreenTowWorldPoint(touch.position);
Run Code Online (Sandbox Code Playgroud)

当我输入 Camera.main 时。并尝试使用智能感知,我希望看到函数 ScreenToWorldPoint(Vector2) 作为我可以使用的可能函数,但没有显示任何内容。

c# unity-game-engine

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

c# ×1

unity-game-engine ×1