Skip to content

Property Updater

Nectunia edited this page Sep 23, 2020 · 4 revisions

Warning You should not take care of this component. You should just be aware that it exists.

What is it for ?

For performance reasons, all Property components in the scene will be update one after the other in a single place. (The update order is initiate randomly)
This place is the PropertyUpdater component.

How does it work ?

When a Property component is enabled in the scene, it is added in the PropertyUpdater.
When a Property component is disable in the scene, it is removed in the PropertyUpdater.

Each frame, the PropertyUpdater will parse all Property components it knows. For each of them, it will execute their DelayedUpdated() method.

Where should it be created ?

You should not add this component by your own in the scene.

This component is created dynamically in the scene at runtime if none exists. It will be deleted in the same way at the game stop.

PropertyUpdater at runtime

By default it is created in the scene's root folder.

How to change the PropertyUpdater location ?

This reason should be the only one wich make you add this component in the scene by your own.

You can add this component in any GameObject in the scene. If you do that, none will be created dynamically.

Warning Only one PropertyUpdater is need by scene.

Clone this wiki locally