Skip to content

A unity question about ecs singleton #11

@ffbh123456

Description

@ffbh123456

I want to store some prefabs in ECS world for the component system use, and I create a struct extend the IComponentData store the GameObject and using SetSingleton when a system initializes, but the unity prompt that I can only use primitive
or blittable type.
How could I solve it or could you give me some solution to store singleton CSharp reference type in ECS world for the component system use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions