createFactoryMethods
createFactoryMethods<
T
>(methods
,instance
,addToStage
):T
Defined in: mixins/factory/methods.ts:3
Type Parameters
• T extends object
= { animatedSprite
: (props
?) => AnimatedSprite
; bitmapText
: (props
?) => BitmapText
; button
: (props
?) => Button
; container
: (props
?) => Container
; existing
: <TEntity
>(entity
, props
?) => TEntity
; flexContainer
: (props
?) => FlexContainer
; graphics
: (props
?) => Graphics
; htmlText
: (props
?) => HTMLText
; particleContainer
: (props
?) => ParticleContainer
; spine
: (props
?) => Spine
; spineAnimation
: (props
?) => SpineAnimation
; sprite
: (props
?) => Sprite
; text
: (props
?) => Text
; texture
: (props
?) => Texture
; uiCanvas
: (props
?) => UICanvas
; svg
: Svg
; }
Parameters
methods
Partial
<T
>
instance
any
addToStage
boolean
Returns
T