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

ECS Nooby question

Discussion in 'Entity Component System' started by StefanaUnity, Apr 9, 2019.

  1. StefanaUnity

    StefanaUnity

    Joined:
    Apr 9, 2019
    Posts:
    18
    Hello I'm Stefana and I'm really confused about a API change for ECS.. I never had this warning come up until I updated ECS package.

    Code (CSharp):
    1. Ignoring invalid [UpdateAfter] dependency for NewBehaviourScript: UnityEngine.Experimental.PlayerLoop.FixedUpdate must be a member of the same ComponentSystemGroup.
    2.  
    I just want to fix this warning and move on as it skips the OnUpdate completely
     
  2. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,683
  3. StefanaUnity

    StefanaUnity

    Joined:
    Apr 9, 2019
    Posts:
    18
    Hey I read the whole page, can you give me an example of how I can use FixedUpdate in ECS? I really would appreciate that
     
  4. StefanaUnity

    StefanaUnity

    Joined:
    Apr 9, 2019
    Posts:
    18
    * I read the page earlier, I just dont think my brain is that advanced- .-
     
  5. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,683
    Put systems which should run from FU in one of your own group and call update for this group from FU.
     
  6. StefanaUnity

    StefanaUnity

    Joined:
    Apr 9, 2019
    Posts:
    18
    Hey I dont know anything how to do that I tried numerous things.. Do I use UpdateBefore(typeof(FixedUpdate)) at all anymore? I'm so confused sorry:(
     
  7. StefanaUnity

    StefanaUnity

    Joined:
    Apr 9, 2019
    Posts:
    18
    Way to Unknown is nostalgia I will download it tonight, is it made using ecs?
     
  8. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,683
  9. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,683
    No. Now you should use ComponentSystemGroup and\or systems types for UpdateBefore\After
     
  10. StefanaUnity

    StefanaUnity

    Joined:
    Apr 9, 2019
    Posts:
    18
    You probably don't realize how confusing it is to me lol. Can you write in C# an example of what I got: I have no understanding of ComponentSystemGroup its not clicking to me -.-

    Code (CSharp):
    1. [UpdateBefore(typeof(PostLateUpdate))]
    2. class _LateUpdate_ : ComponentSystem
    3. {
    4.     protected override void OnUpdate ()
    5.     {
    6.  
    7.     }
    8. }

    Oh ok well it looks satisfying.. Great presentation at least :)
     
  11. StefanaUnity

    StefanaUnity

    Joined:
    Apr 9, 2019
    Posts:
    18
    Wow that is F***** amazing. Please tell me its going to be on steam at some point in the future? you should add leaderboard support or something to make players who enjoy social games play it. A team I worked for in 2015 released a horror mobile game that did really well on android.