Internal: Component constructor
type of the component. Ex. "TransformComponent"
Owning entity. Entity only passed when wrapping existing entity.
Blend mode of the overlay.
Color to tint the overlay image with.
Image to display.
Image transform matrix that can be used to manipulate the appearance of the overlay without performing complex calculations for size and position. As an example one can apply transitions like "pop in" by combining animation of the alpha value of the material used for the component and applying an image transform animating from scaling the [x, y] axes from [0, 0] to [1, 1]. Note that image transforms might interact poorly with overlays depending on exact pixel positioning and size to look good, since the resulting pixel positions will most likely no longer line up at pixel borders.
Internal flag set if component is a Cogs Core component.
Positioning mode of the overlay.
Size of the overlay.
Size mode of the overlay.
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
Overlay component.