with

inline fun <T : Component> EntityEdit.with(componentEdit: T.() -> Unit = {}): EntityEdit

Adds or replaces a Component of the EntityEdit.

Receiver

the EntityEdit for creating a Component.

Return

this EntityEdit.

Parameters

T

the Component to create.

componentEdit

the inlined function with the created Component.