The GDK for Unity provides functionality to develop games in both of Unity’s paradigms:

  • Object-oriented: MonoBehaviours and GameObjects - see documentation
  • Data-oriented: Entity-Component-System (ECS)

You can use either MonoBehaviour-based development, or ECS-based development, or a combination of both.

ECS workflow

  • The design of your Unity game must be data-oriented.
  • Each SpatialOS entity that a worker instance has active read access to has a corresponding Unity ECS entity. To inspect or change the state of the SpatialOS entity's components, you must read or write to the components on their corresponding Unity ECS entities.

Updated about a year ago


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.