2020-09-29から1日間の記事一覧
リポジトリ 使用例 using Kogane; using UnityEditor; public class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { // Project ビューでアセットを検索 ProjectBrowserInternal.SetSearch( "ピカチュウ" ); } }
ソースコード using System; using UnityEditor; public sealed class LabelWidthScope : IDisposable { private readonly float m_oldLabelWidth; public LabelWidthScope( int labelWidth ) { m_oldLabelWidth = EditorGUIUtility.labelWidth; EditorGUIUt…
概要 using System.Linq; using UnityEditor; using UnityEngine; public class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { var paths = Selection .GetFiltered<DefaultAsset>( SelectionMode.DeepAssets ) .Select( x => AssetDatabase.GetAsse</defaultasset>…