Class ChunkSerializableAttribute | Entities | 0.3.0-preview.4
docs.unity.cn
    Show / Hide Table of Contents

    Class ChunkSerializableAttribute

    States that a component type is serializable.

    Inheritance
    Object
    Attribute
    ChunkSerializableAttribute
    Namespace: Unity.Entities
    Syntax
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
    public class ChunkSerializableAttribute : Attribute, _Attribute
    Remarks

    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.

    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX