Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CCArmatureDisplay

Hierarchy

  • DisplayData
    • CCArmatureDisplay

Implements

  • IEventDispatcher

Index

Constructors

constructor

Properties

_armature

_armature: Armature | null = null

_ccComponent

_ccComponent: ArmatureDisplay | null = null

_ccNode

_ccNode: Node | null = null

_eventTarget

_eventTarget: EventTarget

Readonly hashCode

hashCode: number
  • 分配给此实例的唯一标识号。
version

DragonBones 4.5

language

zh_CN

name

name: string

parent

parent: SkinData

path

path: string

shouldAdvanced

shouldAdvanced: boolean = false

Readonly transform

transform: Transform

type

type: DisplayType

Accessors

node

  • get node(): this

Methods

Protected onClear

  • _onClear(): void
  • Returns void

addDBEventListener

  • addDBEventListener(type: string, listener: any, target: any): void

addEvent

  • addEvent(type: string, listener: any, thisObject: any): void

advanceTimeBySelf

  • advanceTimeBySelf(on: boolean | number): void

convertToRootSpace

convertToWorldSpace

  • convertToWorldSpace(point: Vec3): undefined | Vec3

dbClear

  • dbClear(): void

dbInit

  • dbInit(armature: Armature | null): void

dbUpdate

  • dbUpdate(): void

dispatchDBEvent

  • dispatchDBEvent(type: string, eventObject: any): void

getRootDisplay

getRootNode

  • getRootNode(): null | Node

hasDBEventListener

  • hasDBEventListener(type: any): any

hasEvent

  • hasEvent(type: string): boolean

removeDBEventListener

  • removeDBEventListener(type: string, listener: any, target: any): void

removeEvent

  • removeEvent(type: string, listener: any, thisObject: any): void

returnToPool

  • returnToPool(): void
    • 清除该实例的所有数据并将其返还对象池。
    version

    DragonBones 4.5

    language

    zh_CN

    Returns void

setEventTarget

Static borrowObject

  • borrowObject<T>(objectConstructor: { constructor: any }): T
    • 从对象池中获取特定类的实例。
    version

    DragonBones 4.5

    language

    zh_CN

    Type parameters

    • T: BaseObject

    Parameters

    • objectConstructor: { constructor: any }

      特定的类。

      • constructor: function
        • new __type(): T
        • Returns T

    Returns T

Static clearPool

  • clearPool(objectConstructor?: BaseObject | null): void
    • 清除特定对象池的缓存实例。
    version

    DragonBones 4.5

    language

    zh_CN

    Parameters

    • Optional objectConstructor: BaseObject | null

      特定的类。 (不设置则清除所有缓存的实例)

    Returns void

Static setMaxCount

  • setMaxCount(objectConstructor: BaseObject | null, maxCount: number): void
    • 设置特定对象池的最大缓存数量。
    version

    DragonBones 4.5

    language

    zh_CN

    Parameters

    • objectConstructor: BaseObject | null

      特定的类。 (不设置则设置所有对象池的最大缓存数量)

    • maxCount: number

      最大缓存数量。

    Returns void

Static toString

  • toString(): string
  • Returns string

Generated using TypeDoc