<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hirasho0</author_name>
  <author_url>https://blog.hatena.ne.jp/hirasho0/</author_url>
  <blog_title>KAYAC Engineers' Blog</blog_title>
  <blog_url>https://techblog.kayac.com/</blog_url>
  <categories>
    <anon>unity-debug</anon>
    <anon>unity</anon>
    <anon>c#</anon>
  </categories>
  <description>こんにちは。技術部平山です。 今回は図もサンプルもない地味な小ネタです。C#の言語機能の話なのでUnityに限りませんが、 Unity屋にわかりやすいサンプルになっています。 なお、同じことに関する記事があるので英語で良い方はそちらをご覧ください。 結論 #if !(UNITY_EDITOR || UNITY_STANDALONE) [Conditional(&quot;YOUR_PROJECT_NAME_NEVER_DEFINED_SYMBOL&quot;)] #endif void DebugLog(){ ... } みたいな書き方をすると、複数のシンボル(ここではUNITY_EDITORとUNITY_STA…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog.kayac.com%2Fcsharp-logical-operation-for-conditional-attribute&quot; title=&quot;C#のConditionalAttributeの条件をandやorしたい - KAYAC Engineers&amp;#39; Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-11-27 08:00:00</published>
  <title>C#のConditionalAttributeの条件をandやorしたい</title>
  <type>rich</type>
  <url>https://techblog.kayac.com/csharp-logical-operation-for-conditional-attribute</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
