Graphics
From a script
ts
import { GraphicsComponent } from "mmpx";
const graphics = this.entity.TryGetComponent(GraphicsComponent);Full API: GraphicsComponent.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
Shapesshapes | json | [] | |
Materialmaterial | material asset | — | A sprite-domain material — a shader drawing this component |