ソースコード
#if UNITY_EDITOR using System; using JetBrains.Annotations; // ReSharper disable IdentifierTypo // ReSharper disable InconsistentNaming namespace Kogane { [PublicAPI] [Obsolete( "", true )] public static class SourceTemplateCollection { [SourceTemplate] public static void log( this object self ) { /*$ UnityEngine.Debug.Log( self ); */ } [SourceTemplate] public static void logwarn( this object self ) { /*$ UnityEngine.Debug.LogWarning( self ); */ } [SourceTemplate] public static void logerr( this object self ) { /*$ UnityEngine.Debug.LogError( self ); */ } } } #endif
使用例