Optional
options: GraphicsComponentOptionsAnchor to apply to graphics by default
If set to true graphics added to the component will be copied. This can affect performance
Optional
Readonly
dependenciesOptionally list any component types this component depends on If the owner entity does not have these components, new components will be added to the entity
Only components with zero-arg constructors are supported as automatic component dependencies
Offset to apply to graphics by default
Draws after the entity transform has been applied, and after graphics component graphics has been drawn
Draws after the entity transform has bene applied, but before graphics component graphics have been drawn
Sets or gets wither all drawings should have an opacity applied
Optional
Readonly
optionalOptional
ownerReadonly
typeType of this component, must be a unique type among component types in you game.
Sets or gets wether any drawing should be visible in this component
Returns the currently displayed graphics and their offsets, empty array if hidden
Adds a named graphic to this component, if the name is "default" or not specified, it will be shown by default without needing to call
show("default")
Clones any properties on this component, if that property value has a clone()
method it will be called
Optional
onOptional
onShow a graphic by name on the default layer, returns the new Graphic
Optional
options: GraphicsShowOptionsUse a graphic only, swap out any graphics on the default layer, returns the new Graphic
Optional
options: GraphicsShowOptions
Component to manage drawings, using with the position component