3#include "Resources/Resources.h"
5#include "Foundation/ComponentModel/Component.h"
46template<>
inline Cogs::StringView getName<Cogs::Core::ModelComponent>() {
return "ModelComponent"; }
Base class for Component instances.
Provides a weakly referenced view over the contents of a string.
Contains all Cogs related functionality.
Contains a model reference to instance as children to the entity the ModelComponent belongs to.
static void registerType()
Register the type in the type system.
bool inheritMaterial
If the model should inherit the material from the base entity.
MaterialInstanceHandle materialInstance
Explicit material handle.
bool waitForSubresources
If the model should wait for all subresources (e.g. meshes) to be fully loaded before instantiating h...
ModelHandle model
Handle to a model resource that will be instanced onto the entity this ModelComponent belongs to.
bool shareMaterial
If the model should use shared model materials and not create it's own instances.
bool setCoordinate
If model resource has a localOrigin property, forward this value to the TransformComponent's coordina...
static const ResourceHandle_t NoHandle
Handle representing a default (or none if default not present) resource.