Announcement

Collapse
No announcement yet.

Order of updates in Scene for its SceneBehavior and Entities

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Order of updates in Scene for its SceneBehavior and Entities

    Hey,

    What is the order of updates for the SceneBehavior in relation to the update on the Entities? For Scene behavior you can initialize it with Pre-Update and Post-Update.

    Is Pre-Update before the update on Entities and is Post-Update after the update on Entities? What is pre-update and post-update in relation to?

    Thank you,
    Lucrecious

  • #2
    Hi Lucrecious,
    you could debug in Visual Studio to really understand the WaveEngine lifecycle.
    As you would expect, in a game with a scene with PreUpdate order and a component with one behavior,
    the Update method inside the scene behavior gets called first and them the component's behavior is invoked by the Engine.

    With a scene with PostUpdate order and a component with one behavior, the component's behavior gets invoked first.

    Hope this helps
    Have a nice day!

    Comment

    Working...
    X