Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Manual system updates

Discussion in 'Entity Component System' started by Imakhiil, Dec 2, 2018.

  1. Imakhiil

    Imakhiil

    Joined:
    Oct 11, 2013
    Posts:
    96
    Is it possible to call system updates manually <in a way that will still show them in EntityDebugger and the Profiler>? I'm working on a turn based game and I'd like to update systems only at specific intervals. Ideally, I'd like to call something like MySystem.Update(); from a MonoBehaviour and stop the default OnUpdate() method from being called every frame by Unity.
     
  2. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,683
    Use forum search, It was discussed many times in this forum branch
     
  3. Imakhiil

    Imakhiil

    Joined:
    Oct 11, 2013
    Posts:
    96
    Found it
    In case someone stumbles upon this post in the future, use the
    [DisableAutoCreation]
    attribute on your systems and call
    Update()
    method on them manually
     
    florianhanke likes this.