以下の内容はhttps://baba-s.hatenablog.com/entry/2022/09/10/192928より取得しました。


【Unity】Debug.Log を簡単に書けるようにするソーステンプレート

ソースコード

#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

使用例




以上の内容はhttps://baba-s.hatenablog.com/entry/2022/09/10/192928より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14