Search Unity

GetOrCreateSystem inside OnCreate

Discussion in 'Entity Component System' started by snacktime, May 28, 2020.

  1. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    3,356
    Is this supported? I'm getting exceptions doing this in a build from the system state being null. Works fine in the editor.
     
  2. recursive

    recursive

    Joined:
    Jul 12, 2012
    Posts:
    669
    That should work fine. Sounds like a bug with the build process? Maybe it's getting stripped somehow?