Determines if the merged object uses the recevier sprite material information or keeps its source material(s). Defaults to false. If false and receiver object has multiple materials, the last material found in receiver subsprites is applied to the merged subsprite(es).
Determines if the sprite and geometry source(s) used for the merging are disposed. Defaults to false. If true, only receiver geometry and resulting sprite are kept in memory.
Determines if source sprite(es) is/are merged using objectSpace or worldspace. Defaults to false.
Determines if the sprite and geometry source(s) used for the merging are disposed. Defaults to false.
Determines if the sprite and geometry source(s) used for the merging are disposed. Defaults to false.
Determines if the material source(s) used for the merging are disposed. Defaults to false.
Determines if the material source(s) used for the merging are disposed. Defaults to false.
Determines if source sprite(es) is/are merged using objectSpace or worldspace. Defaults to false.
Determines if source sprite(es) is/are merged using objectSpace or worldspace. Defaults to false.
Merges 2 sprites into one. It is recommand to use apply when 2 sprites are to be merged. If more need to be merged, use either applyToSprites or applyToContainer methods.
The Sprite to receive the merged contents of both sprites.
The Sprite to be merged with the receiver sprite
Merges all the children of a container into a single Sprite. If no Sprite object is found, method returns the receiver without modification.
The Sprite to receive the merged contents of the container.
The DisplayObjectContainer holding the sprites to be mergd.
The merged Sprite instance.
Generated using TypeDoc
Class Merge merges two or more static sprites into one.
Merge