【发布时间】:2020-06-20 20:09:32
【问题描述】:
谁能解释一下错误是什么?
IEnumerator GetPictureCor(string url, FriendData friend)
Sprite sprite = new Sprite();
WWW www = new WWW(url);
yield return www;
sprite = Sprite.Create(www.texture, new Rect(0, 0, 128, 128), new Vector2(0, 0), 1f);
friend.picture = sprite;
// print ("get picture for " + url);
}
错误是:
Assets\ADogsAdventure\Scripts\Integrations\FacebookManager.cs(419,29):错误 CS1729:“Sprite”不包含采用 0 个参数的构造函数
【问题讨论】:
-
欢迎来到 Stack Overflow。请关注tour,阅读help center 中的主题内容,然后阅读How to Ask a Good Question。
标签: unity3d