コガネブログ

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

2022-11-15から1日間の記事一覧

【Unity】Type 'XXXX' has an extra field 'YYYY' of type 'ZZZZ' in the player and thus can't be serialized

概要 Type 'XXXX' has an extra field 'YYYY' of type 'ZZZZ' in the player and thus can't be serialized アセットバンドルビルド時に上記のエラーが発生する現象に遭遇した Library フォルダ内の「BuildPlayerData」を削除してからビルドしたら エラーが…

【Unity】UnityWebRequest.Get と JsonUtility.FromJson で「ArgumentException: JSON parse error: Invalid value.」

概要 using var unityWebRequest = UnityWebRequest.Get( path ); await unityWebRequest.SendWebRequest(); var json = unityWebRequest.downloadHandler.text; var xxxx = JsonUtility.FromJson<XXXX>( json ); UnityWebRequest.Get で読み込んだ JSON を JsonUt</xxxx>…

【Unity】プレハブモードを開く時に Hierarchy の検索欄を保持するエディタ拡張

リポジトリ 使用例