{"id":5941,"date":"2025-05-02T13:06:02","date_gmt":"2025-05-02T10:06:02","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=5941"},"modified":"2025-05-02T13:07:27","modified_gmt":"2025-05-02T10:07:27","slug":"detect-srp-urp-or-hdrp-with-assemble-definition-version-defines","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2025\/05\/02\/detect-srp-urp-or-hdrp-with-assemble-definition-version-defines\/","title":{"rendered":"Detect SRP (URP or HDRP) with Assembly Definition Version Defines"},"content":{"rendered":"\n<p>You can detect if URP\/HDRP is installed with Assembly Definition Version Defines:<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439873598-33bf02c7-481c-41f3-a377-a04e41e0b9d0-1.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"611\" height=\"272\" data-attachment-id=\"5946\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2025\/05\/02\/detect-srp-urp-or-hdrp-with-assemble-definition-version-defines\/439873598-33bf02c7-481c-41f3-a377-a04e41e0b9d0-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439873598-33bf02c7-481c-41f3-a377-a04e41e0b9d0-1.png?fit=611%2C272&amp;ssl=1\" data-orig-size=\"611,272\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"439873598-33bf02c7-481c-41f3-a377-a04e41e0b9d0\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439873598-33bf02c7-481c-41f3-a377-a04e41e0b9d0-1.png?fit=300%2C134&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439873598-33bf02c7-481c-41f3-a377-a04e41e0b9d0-1.png?fit=611%2C272&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439873598-33bf02c7-481c-41f3-a377-a04e41e0b9d0-1.png?resize=611%2C272&#038;ssl=1\" alt=\"\" class=\"wp-image-5946\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439873598-33bf02c7-481c-41f3-a377-a04e41e0b9d0-1.png?w=611&amp;ssl=1 611w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439873598-33bf02c7-481c-41f3-a377-a04e41e0b9d0-1.png?resize=300%2C134&amp;ssl=1 300w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439874000-dfa7d1fa-b9db-4910-882c-f941690cd81d-1.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"479\" height=\"269\" data-attachment-id=\"5947\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2025\/05\/02\/detect-srp-urp-or-hdrp-with-assemble-definition-version-defines\/439874000-dfa7d1fa-b9db-4910-882c-f941690cd81d-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439874000-dfa7d1fa-b9db-4910-882c-f941690cd81d-1.png?fit=479%2C269&amp;ssl=1\" data-orig-size=\"479,269\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"439874000-dfa7d1fa-b9db-4910-882c-f941690cd81d\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439874000-dfa7d1fa-b9db-4910-882c-f941690cd81d-1.png?fit=300%2C168&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439874000-dfa7d1fa-b9db-4910-882c-f941690cd81d-1.png?fit=479%2C269&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439874000-dfa7d1fa-b9db-4910-882c-f941690cd81d-1.png?resize=479%2C269&#038;ssl=1\" alt=\"\" class=\"wp-image-5947\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439874000-dfa7d1fa-b9db-4910-882c-f941690cd81d-1.png?w=479&amp;ssl=1 479w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439874000-dfa7d1fa-b9db-4910-882c-f941690cd81d-1.png?resize=300%2C168&amp;ssl=1 300w\" sizes=\"auto, (max-width: 479px) 100vw, 479px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Source<\/strong><br><a href=\"https:\/\/github.com\/unitycoder\/SRPDetectionConditionalCompiling\">https:\/\/github.com\/unitycoder\/SRPDetectionConditionalCompiling<\/a><\/p>\n\n\n\n<p>Repo making of video<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/tLcMN5WNedw?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>You can detect if URP\/HDRP is installed with Assembly Definition Version Defines: Sourcehttps:\/\/github.com\/unitycoder\/SRPDetectionConditionalCompiling Repo making of video<\/p>\n","protected":false},"author":1,"featured_media":5942,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":false,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[660,804],"tags":[1303,888,1302,1301,1206],"class_list":["post-5941","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opensource","category-scripts","tag-assembly-definition","tag-detect","tag-hdrp","tag-srp","tag-urp"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2025\/05\/439873598-33bf02c7-481c-41f3-a377-a04e41e0b9d0.png?fit=611%2C272&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1xP","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=5941"}],"version-history":[{"count":3,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5941\/revisions"}],"predecessor-version":[{"id":5948,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5941\/revisions\/5948"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/5942"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=5941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=5941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=5941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}