Skip to content

Instantly share code, notes, and snippets.

@masayuki5160
Created June 29, 2014 12:50
Show Gist options
  • Save masayuki5160/9501ab2debda5cdaad50 to your computer and use it in GitHub Desktop.
Save masayuki5160/9501ab2debda5cdaad50 to your computer and use it in GitHub Desktop.
Application.OpenURL()のテスト. あっさりうまくいった。
using UnityEngine;
using System.Collections;
public class sample : MonoBehaviour {
void Start () {
string format = "https://twitter.com/intent/tweet?&text={0}";
string url = string.Format(format, WWW.EscapeURL("Twitterは楽しいよ") );
Application.OpenURL(url);
}
}
@masayuki5160
Copy link
Author

参考 -> http://terasur.blog.fc2.com/blog-entry-177.html
iPhoneでの実機テストはok.
Androidについては未テスト.Proがいるとからしい。要テストかな。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment