1#include "ModelComponent.h"
18 TypeDatabase::createType<ModelComponent>().setBase<Component>().setFields(fields);
Field definition describing a single data member of a data structure.
Contains reflection support.
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...