question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fixed Update for Entitas

See original GitHub issue

Hi! Can you give me advice how create system which executes in FixedUpdate; I found not good solution for this:

using Entitas;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;

public class SomeFixedUpdateSystem : IInitializeSystem {

    public SomeFixedUpdateSystem(Contexts contexts) {
        
    }

    public void Initialize() {
        GameControlls.Instance.StartCoroutine(FixedExecute());
    }

    IEnumerator FixedExecute() {
        while(true) {
            
            // do something
            yield return new WaitForFixedUpdate();
        }
    }
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sschmidcommented, Apr 26, 2017

@FNGgames you’re just too fast 😉

0reactions
aefreedmancommented, Apr 28, 2017

@VladislavKostin yeah I’m wrong don’t mind me lol

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixed Update for Entitas · Issue #402
Hi! Can you give me advice how create system which executes in FixedUpdate; I found not good solution for this: using Entitas; using...
Read more >
Entitas/EntitasUpgradeGuide.md at main
Entitas Upgrade Guide. Entitas provides automated migration tools to help upgrading to new versions. You can apply automatic migrations in Unity by opening ......
Read more >
Scripting API: MonoBehaviour.FixedUpdate()
Use FixedUpdate when using Rigidbody. Set a force to a Rigidbody and it applies each fixed frame. FixedUpdate occurs at a measured time...
Read more >
Entitas ECS Unity Tutorial - Setup & Basics - YouTube
... Store: https://www.assetstore.unity3d.com/#!/content/87638 Learn how to set up Entitas and how to get started with components and systems.
Read more >
How to use Fixed Update in Unity
Learn how to use Fixed Update in Unity, how it works & when to use it instead of Update, in my in-depth guide....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found