スキーマ
コンポーネント・スキーマは、コンポーネントが含むデータを定義します。 スキーマを定義するとき、キーと値のペアを含むオブジェクトを提供します。キーはプロパティの名前で、値はそのプロパティが保持するデータの種類を指定するECSタイプです。
インフォメーション
Currently, storing dynamically sized objects or lists isn’t supported. We’re actively exploring this feature and would love to hear about your specific use cases.
The following data types are useful for creating Schema properties on a Custom Component or references to a specific type.
| Type | Description |
|---|---|
| ecs.eid | Entity Reference |
| ecs.f32 | 32-bit floating-point number |
| ecs.f64 | 64-bit floating-point number |
| ecs.i32 | 32-bit integer |
| ecs.ui8 | 8-bit unsigned integer |
| ecs.ui32 | 32-bit unsigned integer |
| ecs.string | String |
| ecs.boolean | Boolean |