You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assets/Scripts/ImageToEmotionAPI.cs(39,44): error CS0234: The type or namespace name File' does not exist in the namespace UnityEngine.Windows'. Are you missing an assembly reference?
Assets/Scripts/ShowImageOnPanel.cs(28,27): error CS0103: The name `File' does not exist in the current context
How to solve them?
The text was updated successfully, but these errors were encountered:
Ok, it seems that this can work:
In ShowImageOnPanel.cs:
#if UNITY_WINRT
byte[] fileData = UnityEngine.Windows.File.ReadAllBytes(fileName);
#else
byte[] fileData = System.IO.File.ReadAllBytes(fileName);
#endif
When imported, two errors:
Assets/Scripts/ImageToEmotionAPI.cs(39,44): error CS0234: The type or namespace name
File' does not exist in the namespace
UnityEngine.Windows'. Are you missing an assembly reference?Assets/Scripts/ShowImageOnPanel.cs(28,27): error CS0103: The name `File' does not exist in the current context
How to solve them?
The text was updated successfully, but these errors were encountered: