Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#
Method group is Obsolete

WriteGroupAttribute

class in Unity.Entities

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Obsolete Write groups are deprecated and will be removed. (RemovedAfter Entities 6.7).

Description

Can exclude components which are unknown at the time of creating the query that have been declared to write to the same component.

This allows for extending systems of components safely without editing the previously existing systems.

The goal is to have a way for systems that expect to transform data from one set of components (inputs) to another (output[s]) be able to declare that explicit transform, and they exclusively know about one set of inputs. If there are other inputs that want to write to the same output, the query shouldn't match because it's a nonsensical/unhandled setup. It's both a way to guard against nonsensical components (having two systems write to the same output value), and a way to "turn off" existing systems/queries by putting a component with the same write lock on an entity, letting another system handle it.