build

Adds the Renderable component to an entity.

If this component already exists on the given entity and the construction is successful, it is first destroyed as if destroy(entity) was called. In case of error, the existing component is unmodified.

Return

Result.Success if the component was created

Parameters

engine

Reference to the filament Engine to associate this Renderable with.

entity

Entity to add the Renderable component to.