Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity ECS Integration #54

Open
zaucy opened this issue Nov 30, 2022 · 0 comments
Open

Unity ECS Integration #54

zaucy opened this issue Nov 30, 2022 · 0 comments
Labels
question Further information is requested

Comments

@zaucy
Copy link
Member

zaucy commented Nov 30, 2022

we may be able to integrate a little bit with Unity's ECS: https://unity.com/ecs

Some Ideas

  • C# codegen could have all Ecsact components implement IComponentData
  • codegen for some boilerplate readonly access to Ecsact components to use for local visual only changes
  • keep a duplicate set of entities in Unity DOTS for quick access and more seamless
    • a duplicate set of entities would also allow developer to write to existing Ecsact components with the caveat of Ecsact components eventually being overwritten by runtime events.

What we won't do

  • Use the C# job system for Ecsact system implementations. Ecsact's system implementations are not compatible with Unity's C# jobs. Ecsact already handles system execution. This is important for Ecsact to do because these systems also run on a server to keep the simulation deterministic with the server and the client. Instead the job systems could be used for visual parts of gameplay such as particles or interpolation.
@zaucy zaucy added the question Further information is requested label Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant