ソースコード using System; using System.Collections.Generic; using System.Linq; public static class IEnumerableExtensions { private sealed class CommonSelector<T, TKey> : IEqualityComparer<T> { private Func<T, TKey> m_selector; public CommonSelector( Func<T, TKey> sele</t,></t,></t></t,>…
ソースコード using System; using System.Collections.Generic; using System.Linq; public static class IEnumerableExtensions { private sealed class CommonSelector<T, TKey> : IEqualityComparer<T> { private Func<T, TKey> m_selector; public CommonSelector( Func<T, TKey> sele</t,></t,></t></t,>…
ソースコード using System; using System.Collections.Generic; using System.Linq; public static class IEnumerableExtensions { private sealed class CommonSelector<T, TKey> : IEqualityComparer<T> { private readonly Func<T, TKey> m_selector; public CommonSelector( </t,></t></t,>…
バージョン 5.0.11 対応方法 EasyTouch.csの934行目以降に下記の処理を追加する // NGUI if (enabledNGuiMode){ if (IsTouchOverNGui(fingers[twoFinger.finger0].position) && IsTouchOverNGui(fingers[twoFinger.finger1].position)) { twoFinger.isOverGu…
val isCompleted = false; CoroutineUtils.CallWaitForCondition( () => isCompleted, () => Debug.Log( "ピカチュウ" ) ); CoroutineUtils.CallWaitForCondition( gameObject, () => isCompleted, () => Debug.Log( "ピカチュウ" ) );
CoroutineUtils.CallWaitForSeconds( 1.5f, () => Debug.Log( "ピカチュウ" ) ); CoroutineUtils.CallWaitForSeconds( gameObject, 1.5f, () => Debug.Log( "ピカチュウ" ) );
ソースコード 使い方 CoroutineUtils.CallWaitForEndOfFrame( () => Debug.Log( "ピカチュウ" ) ); CoroutineUtils.CallWaitForEndOfFrame( gameObject, () => Debug.Log( "ピカチュウ" ) );
概要 http://hwstats.unity3d.com/mobile/ 上記のページで Android や iOS のシェアを確認できます
概要 partialクラスのいずれかの定義にのみインターフェイスの実装を書けば良い public interface ICharacter { int Id { get; } } public partial class Character { } public partial class Character : ICharacter { public int Id { get { return 25; } …
ソースコード 検証用スクリプト // string.Format を使用した場合のGC発生回数検証 for ( int i = 0; i < 1000000; i++ ) { string.Format( "{0},{1},{2},{3}", 0, 1, 2, 3 ); } Console.WriteLine( GC.CollectionCount( 0 ) ); // StringUtils.Format を使…
Error building Player: IOException: Failed to Copy File / Directory from 'Temp/StagingArea/Data' to 'Temp/StagingArea/Trampoline/Data'. JenkinsでUnityのビルド実行時に発生したエラー Jenkins用のMacの容量が不足していたことが原因
Colliderがアタッチされているすべてのゲームオブジェクトは イベントを受け取ることが可能 using UnityEngine; public class Example : MonoBehaviour { private void OnHover( bool isOver ) { Debug.Log( "OnHover" ); } private void OnPress( bool isPr…
便利なメニュー ショートカットキーで実行 ショートカットキー 内容 Alt+Shift+N 選択中のオブジェクトの子に空のオブジェクトを作成 Alt+Shift+C 選択中のオブジェクトにBoxColliderをアタッチ Alt+Shift+P 選択中のオブジェクトのサイズをスナップ Unityの…
UIの作り方 1. プレハブをProjectビューからSceneビューにドラッグする 2. Unityのメニューから作成する 3. ショートカットキーを使用する ショートカットキー 内容 Alt+Shift+S UISprite作成 Alt+Shift+L UILabel作成 Alt+Shift+T UITexture作成 Alt+Shift+…
AndroidでIL2CPPが正式サポート iOS6がサポート対象外に スプラッシュスクリーンに細かい設定が追加された GameObject.AddComponent<MonoBehaviour>が例外を吐くようになった 実機でログ出力するかどうかをPlaterSettingsで設定できるようになった アニメーションで同じイベ</monobehaviour>…