{"title":"C#\u306eConditionalAttribute\u306e\u6761\u4ef6\u3092and\u3084or\u3057\u305f\u3044","url":"https://techblog.kayac.com/csharp-logical-operation-for-conditional-attribute","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog.kayac.com%2Fcsharp-logical-operation-for-conditional-attribute\" title=\"C#\u306eConditionalAttribute\u306e\u6761\u4ef6\u3092and\u3084or\u3057\u305f\u3044 - KAYAC Engineers&#39; Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","published":"2019-11-27 08:00:00","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/hirasho0/","width":"100%","version":"1.0","blog_url":"https://techblog.kayac.com/","blog_title":"KAYAC Engineers' Blog","author_name":"hirasho0","provider_url":"https://hatena.blog","description":"\u3053\u3093\u306b\u3061\u306f\u3002\u6280\u8853\u90e8\u5e73\u5c71\u3067\u3059\u3002 \u4eca\u56de\u306f\u56f3\u3082\u30b5\u30f3\u30d7\u30eb\u3082\u306a\u3044\u5730\u5473\u306a\u5c0f\u30cd\u30bf\u3067\u3059\u3002C#\u306e\u8a00\u8a9e\u6a5f\u80fd\u306e\u8a71\u306a\u306e\u3067Unity\u306b\u9650\u308a\u307e\u305b\u3093\u304c\u3001 Unity\u5c4b\u306b\u308f\u304b\u308a\u3084\u3059\u3044\u30b5\u30f3\u30d7\u30eb\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u306a\u304a\u3001\u540c\u3058\u3053\u3068\u306b\u95a2\u3059\u308b\u8a18\u4e8b\u304c\u3042\u308b\u306e\u3067\u82f1\u8a9e\u3067\u826f\u3044\u65b9\u306f\u305d\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002 \u7d50\u8ad6 #if !(UNITY_EDITOR || UNITY_STANDALONE) [Conditional(\"YOUR_PROJECT_NAME_NEVER_DEFINED_SYMBOL\")] #endif void DebugLog(){ ... } \u307f\u305f\u3044\u306a\u66f8\u304d\u65b9\u3092\u3059\u308b\u3068\u3001\u8907\u6570\u306e\u30b7\u30f3\u30dc\u30eb(\u3053\u3053\u3067\u306fUNITY_EDITOR\u3068UNITY_STA\u2026","categories":["unity-debug","unity","c#"],"image_url":null,"height":"190"}