我正在嘗試在 Unity 中使用 System.Threading.Tasks.Task 來控制 IEnumerator 函式。我的代碼已經作業了大約一年,但突然停止在 Visual Studio 2022 中編譯。最奇怪的是,Unity 仍然編譯我的代碼,甚至成功構建。我已經盡可能地減少了我的代碼,但仍然出現錯誤。
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class taskTest : MonoBehaviour
{
void Start()
{
System.Threading.Tasks.Task<int> task;
}
}
似乎錯誤訊息本身也在 Visual Studio 中被竊聽。根據微軟的說法:TypeName1 型別存在于 TypeName2 和 TypeName3 中。但我的錯誤不包括TypeName3。我的錯誤說,CS0433:“任務”型別存在于兩個“Unity.Tasks”中,

謝謝希望能幫到你。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/485143.html
下一篇:Java 書城專案本地部署指引
