Function remove

Synopsis

#include <src/entt/entity/handle.hpp>

template <typename... Component>
void remove() const

Description

Removes the given components from a handle.

See
basic_registry::remove
Template Parameters

Component - Types of components to remove.

Source

Lines 177-181 in src/entt/entity/handle.hpp.

template<typename... Component>
void remove() const {
    static_assert(sizeof...(Type) == 0 || (type_list_contains_v<type_list<Type...>, Component> && ...));
    reg->template remove<Component...>(entt);
}





Add Discussion

Log in to comment