Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
Internal flag set if component is a Cogs Core component.
Handle to a Mesh resource to use when rendering. The mesh handle is an owning reference to the mesh resource, ensuring that if a valid mesh handle is set, the mesh resource will not be freed until this component is destructed, or the mesh handle set to another handle. If the handle is not valid, no mesh will be passed when rendering a MeshRenderComponent attached to the same entity, and no geometry will appear on screen.
Gets the optional owning entity
Component name == type. For compatibility
Gets the type of the component. Ex. "TransformComponent", "SceneComponent" etc.
Static
createInternal: 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.
Static
wrap
Contains a handle to a Mesh resource to use when rendering using the MeshRenderComponent.