setEntityPersistence ==================== :doc:`/types/Script/index`::setEntityPersistence Marks or unmarks the :doc:`/entity_component_system/entity/index` as persistent. Declaration ----------- .. code-block:: cpp void setEntityPersistence(Entity entity, bool persistent); Parameters ---------- .. list-table:: :width: 100% :header-rows: 1 :class: code-table * - Name - Type - Description * - entity - :doc:`/entity_component_system/entity/index` - The Entity to set the persistence flag on. * - persistent - bool - The status of the persistence flag. Returns ------- None.