Options
Menu

Class AnimationClipNodeBase

Provides an abstract base class for nodes with time-based animation data in an animation blend tree.

Hierarchy

  • AnimationNodeBase

Implements

  • IAsset
  • IAssetAdapter

Index

Constructors

constructor

  • Creates a new AnimationClipNodeBase object.

    Returns AnimationClipNodeBase

Properties

_adapter

_adapter: IAssetAdapter

_pDurations

_pDurations: Array<number>

_pLastFrame

_pLastFrame: number

_pLooping

_pLooping: boolean

_pNumFrames

_pNumFrames: number

_pStateClass

_pStateClass: any

_pStitchDirty

_pStitchDirty: boolean

_pStitchFinalFrame

_pStitchFinalFrame: boolean

_pTotalDelta

_pTotalDelta: Vector3D

_pTotalDuration

_pTotalDuration: number

adaptee

adaptee: AssetBase

adapter

adapter: IAssetAdapter

adapter is used to provide MovieClip to scripts taken from different platforms setter typically managed by factory. getter defaults to AwayJS class

assetFullPath

assetFullPath: Array<string>

assetNamespace

assetNamespace: string

assetType

assetType: string
inheritdoc

fixedFrameRate

fixedFrameRate: boolean

id

id: number

A unique id for the asset, used to identify assets in an associative array

name

name: string

originalName

originalName: string

The original name used for this asset in the resource (e.g. file) in which it was found. This may not be the same as name, which may have changed due to of a name conflict.

stateClass

stateClass: any

Static DEFAULT_NAMESPACE

DEFAULT_NAMESPACE: string

Static ID_COUNT

ID_COUNT: number

Static assetType

assetType: string

Accessors

durations

  • get (): Array<number>
  • Returns a vector of time values representing the duration (in milliseconds) of each animation frame in the clip.

    Returns Array<number>

lastFrame

  • get (): number
  • Returns number

looping

  • get (): boolean
  • set (value: boolean): void
  • Determines whether the contents of the animation node have looping characteristics enabled.

    Returns boolean

  • Determines whether the contents of the animation node have looping characteristics enabled.

    Parameters

    • value: boolean

    Returns void

stitchFinalFrame

  • get (): boolean
  • set (value: boolean): void
  • Defines if looping content blends the final frame of animation data with the first (true) or works on the assumption that both first and last frames are identical (false). Defaults to false.

    Returns boolean

  • Defines if looping content blends the final frame of animation data with the first (true) or works on the assumption that both first and last frames are identical (false). Defaults to false.

    Parameters

    • value: boolean

    Returns void

totalDelta

  • get (): Vector3D
  • Returns Vector3D

totalDuration

  • get (): number
  • Returns number

Methods

_pUpdateStitch

  • _pUpdateStitch(): void
  • Updates the node's final frame stitch state.

    see

    #stitchFinalFrame

    Returns void

addEventListener

  • addEventListener(type: string, listener: function): void
  • Add an event listener

    method

    addEventListener

    Parameters

    • type: string
    • listener: function
        • (event: EventBase): void
        • Parameters

          • event: EventBase

          Returns void

    Returns void

assetPathEquals

  • assetPathEquals(name: string, ns: string): boolean
  • Parameters

    • name: string
    • ns: string

    Returns boolean

clear

  • clear(): void
  • Returns void

dispatchEvent

  • dispatchEvent(event: EventBase): void
  • Dispatch an event

    method

    dispatchEvent

    Parameters

    • event: EventBase

    Returns void

dispose

  • dispose(): void
  • inheritdoc

    Returns void

hasEventListener

  • hasEventListener(type: string, listener?: function): boolean
  • check if an object has an event listener assigned to it

    method

    hasListener

    Parameters

    • type: string
    • Optional listener: function
        • (event: EventBase): void
        • Parameters

          • event: EventBase

          Returns void

    Returns boolean

invalidate

  • invalidate(): void
  • Returns void

isAsset

  • isAsset(assetClass: IAssetClass): boolean
  • Parameters

    • assetClass: IAssetClass

    Returns boolean

removeEventListener

  • removeEventListener(type: string, listener: function): void
  • Remove an event listener

    method

    removeEventListener

    Parameters

    • type: string
    • listener: function
        • (event: EventBase): void
        • Parameters

          • event: EventBase

          Returns void

    Returns void

resetAssetPath

  • resetAssetPath(name: string, ns?: string, overrideOriginal?: boolean): void
  • Parameters

    • name: string
    • Optional ns: string
    • Optional overrideOriginal: boolean

    Returns void

updateFullPath

  • updateFullPath(): void
  • Returns void

Generated using TypeDoc