在前篇<<使用ShareSDK在Unity3d截屏分享到微信>>随笔的基础,增长分享图片到QQhtml
public void OnShareClick() { ShareContent content = new ShareContent(); ScreenCapture.CaptureScreenshot("capture.png"); content.SetImagePath(Application.persistentDataPath + "/capture.png"); //content.SetTitle("标题title"); //content.SetTitleUrl("www.qq.com"); content.SetShareType(ContentType.Image); shareSdk.ShowPlatformList(null, content, 100, 100); //弹出分享菜单选择列表 //shareSdk.ShowShareContentEditor(PlatformType.WeChat, content); //指定平台直接分享 }