#[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)

stiff rover
#

Basically I had a define SERVER || UNITY_EDITOR, that resulted in all systems in that assembly to throw couldn't be found in the SystemRegistry. (This is likely a bug in an ILPostprocessor.) when world was created.
SERVER define was set for sure.
Simply removing || UNITY_EDITOR helped.

#

@frigid sinew

shrewd stratus
#

that is highly confusing

#

(not your description, the result)

stiff rover
#

thus such unexpected bug

shrewd stratus
#

oh is this on the assembly def

#

not the script?

stiff rover
#

yes

shrewd stratus
#

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

stiff rover
#

JobReflectionDataPostProcessor.cs, line 159

shrewd stratus
shrewd stratus
#

because constraints aren't defines

stiff rover
#

but as I removed UNITY_EDITOR it's all fixed

frigid sinew
#

yeah sounds like a legit bug to me

#

filed internally

shrewd stratus
stiff rover