2020-10-07から1日間の記事一覧
概要 using UnityEngine; [SharedBetweenAnimators] public sealed class Example : StateMachineBehaviour { private int m_counter; // static ではない public override void OnStateEnter ( Animator animator, AnimatorStateInfo stateInfo, int layerI…
概要 using UnityEditor; using UnityEditorInternal; using UnityEngine; public class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { var invalidPath = @"\ピ/カ:チ*ュ?ウ"".<t>x|t"; var path = InternalEditorUtility.RemoveInvalid</t>…
概要 using UnityEditor; using UnityEditorInternal; public class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { InternalEditorUtility.OpenPlayerConsole(); } }
概要 using UnityEditor; using UnityEditorInternal; public class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { InternalEditorUtility.OpenEditorConsole(); } }
概要 using UnityEditor; using UnityEditorInternal; public class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { InternalEditorUtility.OpenFileAtLineExternal ( filename: "Assets/XXXX.cs", line: 0, // 行番号 column: 0 // 列…
概要 using UnityEditor; using UnityEngine; public class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { Debug.Log( UnityEditorInternal.InternalEditorUtility.isApplicationActive ); } }