![](/img/trans.png)
[英]Execution problems in visual studio for Mac 2019 (NuGet packages)
[英]Problems with Tooltip Visual Studio 2019
不知何故,當我嘗試在 Visual Studios 中為 Unity 項目使用 C# 的調試功能時,我的 Visual Studios 沒有顯示帶有正確選項的工具提示。 相反,它顯示了在這些情況下對我不起作用的其他庫中的函數。 我擔心其他函數和方法可能會遇到這個問題,例如,即使我在沒有工具提示幫助的情況下編寫 Debug,當我嘗試使用 Debug.Log 時,工具提示中的選項不是我所用的一直在尋找。
如果您對我的代碼不滿意,那么當您通過 Unity 創建 C# 文件時,您會得到一個簡單的代碼。
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
// Start is called before the first frame update
private void Start()
{
Debug.Log("Hello");
}
// Update is called once per frame
private void Update()
{
Debug.Log("Goodbye");
}
}
只是為了說明,這是問題的圖像。 它顯示來自“System.diagnostics.Debug”的功能調試,但我希望它來自“System.Collections”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.