Skip to content

Wrap editor scripts with UNITY_EDITOR directives#16

Closed
francescofugazzi wants to merge 1 commit intoaras-p:mainfrom
francescofugazzi:UnityEditor
Closed

Wrap editor scripts with UNITY_EDITOR directives#16
francescofugazzi wants to merge 1 commit intoaras-p:mainfrom
francescofugazzi:UnityEditor

Conversation

@francescofugazzi
Copy link

Wrapped all editor-specific scripts with #if UNITY_EDITOR ... #endif preprocessor directives to ensure they are excluded from non-editor builds

…ives

 to prevent them from being compiled in non-editor builds.
aras-p added a commit that referenced this pull request Oct 4, 2023
@aras-p
Copy link
Owner

aras-p commented Oct 4, 2023

Thanks! I thought that was not needed since they are in Editor folder. But turns out, that no longer takes an effect since I added an asmdef in the parent folder (and that was needed for URP/HDRP support). I solved the issue by adding a proper asmdef to the editor folder instead, closing this PR instead.

@aras-p aras-p closed this Oct 4, 2023
HIHHIYAYAYOO pushed a commit to HIHHIYAYAYOO/UnityGaussianSplatting that referenced this pull request Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants