Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Static variables not accessing systems after building

Discussion in 'Entity Component System' started by pmzshvlsbqyodeolhd, Jul 13, 2020.

  1. pmzshvlsbqyodeolhd


    Jun 10, 2020
    I've got a series of static variables (mostly bools with a couple ints) tied to a namespace that I use to pass information between ecs scripts and monobehaviours for spawning entities and updating component data. Inside the editor, this has been working completely fine but seems to no longer work after I build the project.

    I originally had the static variables inside the systems but moved them to the namespace to try and tidy things up but either or doesn't seem to stop the system from no longer accessing the static variables.

    Wonder if anyone has any insight into this?