最終更新:2021-02-25 (木) 14:01:48 (1148d)  

A-Frame/ECS
Top / A-Frame / ECS

https://aframe.io/docs/1.2.0/introduction/entity-component-system.html

A-Frame/エンティティ

  • Entities are represented by the <a-entity> element and prototype.

A-Frame/コンポーネント

  • Components are represented by HTML attributes on <a-entity>‘s.
  • Underneath, components are objects containing a schema, lifecycle handlers, and methods.
  • Components are registered via the AFRAME.registerComponent (name, definition) API.

A-Frame/システム?

  • Systems are represented by <a-scene>‘s HTML attributes. System are similar to components in definition.
  • Systems are registered via the AFRAME.registerSystem? (name, definition) API.