コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【宣伝】Nintendo Switch 版「ガブッチ」が1周年記念で30%OFFのセール中です!

概要 Nintendo Switch 版「ガブッチ」が1周年記念で30%OFFのセール中です! 不思議で可愛い生き物「ガブッチ」をゴールに導くアクションパズルゲームです ひらめき力が試される180個のステージを用意しています ダウンロードページ:https://ec.nintendo.com…

【Rider】Rider のおすすめのプラグインがまとめられたサイト様

概要 Awesome Plugins for Rider: Language Support | The .NET Tools Blog Awesome Plugins for Rider: Code Editing/Analysis | The .NET Tools Blog Awesome Plugins for Rider: UI/UX | The .NET Tools Blog Fun and entertaining plugins for Rider | T…

【Unity】Array.Contains と HashSet.Contains の速度比較

検証用スクリプト using System.Collections.Generic; using System.Diagnostics; using System.Linq; using UnityEngine; using Debug = UnityEngine.Debug; public class Example : MonoBehaviour { private void Start() { var count = 10000; var value …

【Unity】HashSet を JsonUtility でシリアライズ・デシリアライズするサンプル

ソースコード using System; using System.Collections.Generic; using UnityEngine; [Serializable] public sealed class Example : ISerializationCallbackReceiver { [SerializeField] private int[] m_array = null; private HashSet<int> m_hashSet; public </int>…

【Unity】WebGL の InputField でコピー・ペーストできる「WebGLInput」紹介

はじめに 「WebGLInput」を Unity プロジェクトに導入することで WebGL の InputField でコピー・ペーストできるようになります 検証環境 Unity 2019.2.15f1 Chrome 79.0.3945.130 Firefox 72.0.2 上記の環境で正常に動作することを確認しています 使い方 In…

【Unity】Unity Package Manager で使用できるおすすめのパッケージがまとめられたリポジトリ「Awesome UPM」紹介

概要 「Awesome UPM」は Unity Package Manager で使用できる おすすめのパッケージがまとめられたリポジトリです

【Unity】無料で使えるおすすめのパッケージやライブラリがまとめられたリポジトリ「Awesome Unity FREE」紹介

概要 「Awesome Unity FREE」は無料で使えるおすすめのパッケージや ライブラリがまとめられたリポジトリです

【Unity】Curl error 6: Could not resolve host: config.uca.cloud.unity3d.com

概要 Curl error 6: Could not resolve host: config.uca.cloud.unity3d.com Curl error 6: Could not resolve host: cdp.cloud.unity3d.com Unity 2019.2.15f1 において PC を機内モードにしたところ、何も操作していなくても Unity の Console ウィンドウ…

【Unity】おすすめのオープンソースがまとめられたリポジトリ「awesome-unity3d」紹介

概要 「awesome-unity3d」はおすすめのオープンソースがまとめられたリポジトリです

【Unity】Found plugins with same names, and . Delete the one of the duplicate plugins.

概要 Found plugins with same names, and . Delete the one of the duplicate plugins. Unity 2018.4 のプロジェクトを 2019.2 にアップデートして Android ビルドしようとしたところ、上記のエラーが発生してビルドできなかった Unity プロジェクトを終了…

【Unity】無料で使用できるおすすめのスクリプト、ライブラリ、プラグインがまとめられたリポジトリ「Unity Script Collection」紹介

概要 「Unity Script Collection」は無料で使用できるおすすめのスクリプト、 ライブラリ、プラグインがまとめられたリポジトリです

【Unity】おすすめのアセットやプロジェクトがまとめられたリポジトリ「Awesome Unity」紹介

概要 「Awesome Unity」はおすすめのアセットやプロジェクトがまとめられたリポジトリです

【Unity】GitHub で公開されているおすすめのオープンソース800個以上をカテゴリごとにまとめました

概要 GitHub で公開されているおすすめのオープンソース800個以上を カテゴリごとにまとめました 上記のリポジトリで確認できます

【Unity】シーン遷移時に簡単にデータを渡すことができるパッケージ「Unity Scene Data Transfer」を GitHub に公開しました

はじめに シーン遷移時に簡単にデータを渡すことができるパッケージ 「Unity Scene Data Transfer」を GitHub に公開しました インストール "com.baba_s.unity-scene-data-transfer": "https://github.com/baba-s/unity-scene-data-transfer.git", manifest.…

【Unity】CircleCollider2D に Physics2D.Raycast した時に当たった点の反対側の点を取得する方法

ソースコード public static Vector2 GetRayExitThroughCircle( CircleCollider2D circleCollider, Vector2 entryPoint, Vector2 direction ) { Vector2 colliderCenter = circleCollider.transform.position; Vector2 directionToCenter = colliderCenter -…