コガネブログ

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

2023-04-21から1日間の記事一覧

【Unity】Performance warning: There are more than 100 preview scenes.

概要 Performance warning: There are more than 100 preview scenes. There might be code not releasing the preview scene after creating it. UnityEditor.InspectorWindow:RedrawFromNative () PrefabUtility.LoadPrefabContents でプレハブを大量に読…

【Unity】指定したフォルダ内のプレハブを一括で編集するスクリプトのテンプレート

スクリプト using System.Linq; using UnityEditor; using UnityEngine; internal static class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { const string directoryName = "Assets/"; var assetPaths = AssetDatabase .GetAllAsset…