コガネブログ

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

2022-05-24から1日間の記事一覧

【Unity】Method XXXX.YYYY has invalid parameters. MenuCommand is the only optional supported parameter.

概要 Method XXXX.YYYY has invalid parameters. MenuCommand is the only optional supported parameter. MenuItem が適用された関数を定義した時に上記の警告が表示される現象に遭遇した using UnityEditor; using MenuCommand = System.ComponentModel.De…

【Unity】Exception: Lightmapping.lightingSettings is null. Please assign it to an existing asset or a new instance.

概要 Unity の「Window > Rendering > Lighting」の 「Lighting Settings Asset」が設定されていない状態で Debug.Log( Lightmapping.lightingSettings ); 上記のようなコードを記述すると Exception: Lightmapping.lightingSettings is null. Please assign…

【Unity】ArgumentException: Input Button XXXX is not setup.

概要 ArgumentException: Input Button XXXX is not setup. To change the input settings use: Edit -> Settings -> Input 上記のようなエラーが発生する場合、 using UnityEngine; public class Example : MonoBehaviour { private void Update() { if ( I…

【Unity】Unable to parse Build/XXXX.framework.js.gz!

概要 Unable to parse Build/XXXX.framework.js.gz! This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: gzip" present. Check …

【Unity】Inspector の UnityEvent の表示をコンパクトにできる「Compact-Unity-Events」紹介

はじめに 「Compact-Unity-Events」を Unity プロジェクトに導入することで Inspector の UnityEvent の表示をコンパクトにできます 導入前 導入後