Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
If true the MaterialFlags::Backdrop on the material instance.
Manages draw order, maps to MaterialOptions::drawOrder.
Lines rendered with instancing.
Internal flag set if component is a Cogs Core component.
Master material entity. When set, all material properties of this instance will be overridden by the values of a MaterialComponent on the master material entity.
If false, object never gets shadowed.
Gets the optional owning entity
Component name == type. For compatibility
Gets the type of the component. Ex. "TransformComponent", "SceneComponent" etc.
StaticcreateInternal: Creates a new component of the given type (name). Component is wrapped when adding to an entity.
Type of the component. Ex. "TransformComponent"
Created Cogs.js component.
Staticwrap
Exposes material properties for legacy entities and code. The values used in the material components will automatically be applied to the material instance(s) on the MeshRenderComponent from the same entity. If no instances are found, a new or shared material will be created.