Skip to main content
POST
Set material properties on an entity

Body

application/json
entity_id
integer<int32>
required
Required range: x >= 0
albedo
number<float>[] | null

Albedo color as [r, g, b, a]

alpha_mode
string | null

Alpha mode: "opaque", "blend", or "mask:0.5"

emissive
number<float>[] | null

Emissive color as [r, g, b]

metallic
number<float> | null

Metallic factor (0.0 - 1.0)

roughness
number<float> | null

Roughness factor (0.0 - 1.0)

Response

200 - application/json

Material updated on the entity (component created if absent); ok is false with a message when the entity is not found.

ok
boolean
required
message
string | null