ソースコード
#if UNITY_EDITOR using System; using System.Collections.Generic; using JetBrains.Annotations; // ReSharper disable IdentifierTypo // ReSharper disable InconsistentNaming namespace Kogane { [PublicAPI] [Obsolete( "", true )] public static class SourceTemplateCollection { [SourceTemplate] [Macro( Target = "separator" )] [Macro( Target = "variable" )] public static void join( this IEnumerable<string> self ) { /*$ var $variable$ = string.Join( "$separator$", self ); */ } } } #endif
使用例