Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

ChunkSerializableAttribute

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

Description

States that a component type is serializable.

By default, ECS does not support storing pointer types in chunks. Apply this attribute to a component declaration to allow the use of pointers as fields in the component.

Note that ECS does not perform any pre- or post-serialization processing to maintain pointer validity. When using this attribute, your code assumes responsibility for handling pointer serialization and deserialization.