setPersisting

inline fun <T : Component> setPersisting(component: T, kClass: KClass<out T> = T::class, noEvent: Boolean = false): T

Sets a persisting component on this entity, which will be serialized if possible.

Parameters

noEvent

If true, will not fire an AddedComponent event.