Search Unity

Move OnUpdate to FixedUpdate?

Discussion in 'Entity Component System' started by williampire, Aug 20, 2019.

  1. williampire

    williampire

    Joined:
    Jul 24, 2018
    Posts:
    9
    Tried multiple ways of doing so, although I cannot seem to get it to work without being too hacky. I noticed there's been quite a few threads on this, just wondering if there's been an update to this, making it move the system into the FixedUpdate group in the entity debugger.

    Code (CSharp):
    1. [UpdateBefore(typeof(UnityEngine.Experimental.PlayerLoop.FixedUpdate))]
    2. public class PlayerClientSystem : ComponentSystem
     
  2. psuong

    psuong

    Joined:
    Jun 11, 2014
    Posts:
    126
  3. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,775
  4. psuong

    psuong

    Joined:
    Jun 11, 2014
    Posts:
    126
    Antypodish likes this.