Giter Club home page Giter Club logo

Comments (4)

Tryibion avatar Tryibion commented on June 24, 2024

Works fine for me... even runs while not in play mode. Do you have any code that can reproduce this issue?

from flaxengine.

mtszkarbowiak avatar mtszkarbowiak commented on June 24, 2024

I was preparing the code when it clicked it my brain: Update is not invoked if the checkbox Receives Events for the canvas is checked off. The comment for this checkbox says though that it should be used to disable input events.

from flaxengine.

Tryibion avatar Tryibion commented on June 24, 2024

I see. I guess the question is, should it call update if that is uncheck marked? there could be inputs firing in the update loop....

from flaxengine.

mtszkarbowiak avatar mtszkarbowiak commented on June 24, 2024

I think it should. My understanding is the following:

  1. Creating a canvas which does not receive input is useful. It may be used for Player's HUD which never interacts with mouse, just displays info.
  2. Such canvas should still be update-able. For example health bars, map markers, etc. Time dependence allows for animations. That's why it takes delta time as a param.
  3. Control has separate Update and Draw to distinguish the process of drawing and updating state, meaning that the engine may draw the control multiple times between updates, and vice versa. (As I remember Unity can do that.)
  4. Ultimately, to modify if a script is updating, the engine uses Enabled. If so, the controls should follow it.

from flaxengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.