#[Bug] Having `UNITY_EDITOR` in assembly define causes it's systems to be stripped out of a build
1 messages · Page 1 of 1 (latest)
code responsible for collection of system for SystemBaseRegistry is simply using Defines.Contains("UNITY_EDITOR") for it's logic
thus such unexpected bug
yes
hmm was this added recently
because i have
BL_DEBUG || UNITY_EDITOR
on my debug assemblies
and it worked up to quite recently
i don't recall testing in say 2-3 months though
well i do it the other way around but i can't imagine that matters
that is certainly annoying if broke now
JobReflectionDataPostProcessor.cs, line 159
this works fine for me, all my debug systems loaded fine in a build
are you sure that's right?
because constraints aren't defines
not sure how to check
but as I removed UNITY_EDITOR it's all fixed
Yeah it's definitely really weird and I'm not doubting your results, just couldn't repo it myself (which is good for me). There is a chance my debug systems just don't hit the requirement for this to break.
hmm, what if you try to build via script, but add BL_DEBUG as additional define from build options, isntead of specifying it in player settings