2020-11-16から1日間の記事一覧
リポジトリ 使用例
ソースコード
ソースコード
ソースコード
ソースコード
ソースコード using UnityEngine; public static class AndroidUtils { public static int GetSdkInt() { #if UNITY_ANDROID if ( Application.isEditor ) return -1; using ( var version = new AndroidJavaClass( "android.os.Build$VERSION" ) ) { return…
概要 Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by …
ソースコード 使用例 using Kogane; using System.Collections; using UnityEngine; using UnityEngine.Networking; public class Example : MonoBehaviour { private IEnumerator Start() { var request = UnityWebRequest.Get( "https://www.google.com/" …
概要 var str = "{\n\t\\\"id\\\":25,\n\t\\\"name\\\":\\\"\\u30d4\\u30ab\\u30c1\\u30e5\\u30a6\\\"\n}"; Debug.Log( Regex.Unescape( str ) ); { "id":25, "name":"ピカチュウ" } Regex.Unescape を使用する
概要 using System.Reflection; using UnityEditor; using UnityEditor.AddressableAssets; using UnityEditor.AddressableAssets.Settings; public static class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { var settings = Addres…
ソースコード 使用例 using Kogane; using System.Collections; using UnityEngine; using UnityEngine.Rendering; public class Example : MonoBehaviour { private void Update() { if ( Input.GetKeyDown( KeyCode.Space ) ) { StartCoroutine( Hoge() );…
ソースコード 使用例 using Kogane; using System.Collections; using UnityEngine; public class Example : MonoBehaviour { private void Update() { if ( Input.GetKeyDown( KeyCode.Space ) ) { StartCoroutine( Hoge() ); } } private IEnumerator Hoge…
ソースコード 使用例 using Kogane; using UnityEngine; public sealed class Example : MonoBehaviour { private void Awake() { GlobalApplicationEvent.OnPause += OnGlobalApplicationEventOnOnPause; } private void OnDestroy() { GlobalApplicationEv…
はじめに 上記のフォーラムで公開されているスクリプトを使用することで iOS で SFSafariViewController を使用できるようになります この記事では上記のスクリプトを参考に iOS で SFSafariViewController を使用できるようにする方法を紹介していきます 検…
はじめに 基本的には上記サイト様が紹介してくださっている手順を踏めば Android で Chrome Custom Tabs を使用できるようになりますが、 いくつか躓いた箇所があったため、備忘録として自分が踏んだ手順をまとめておきます 検証環境 Unity 2020.1.6f1 手順 …
概要 using System; using System.Text; using UnityEngine; using UnityEngine.Networking; public class Example : MonoBehaviour { [Serializable] private sealed class Data { public int id = 25; public string name = "ピカチュウ"; } private void …