Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SkeletalAnimationState

Hierarchy

Index

Constructors

constructor

Properties

Protected _animInfo

_animInfo: IAnimInfo | null = null

Protected _animInfoMgr

_animInfoMgr: JointAnimationInfo

Protected _bakedDuration

_bakedDuration: number = 0

Protected _comps

_comps: SkinnedMeshRenderer[] = []

Protected _curveLoaded

_curveLoaded: boolean = false

This field is only visible from within internal.

Protected _curvesInited

_curvesInited: boolean = false

Protected _frames

_frames: number = 1

Protected _parent

_parent: SkeletalAnimation | null = null

Protected _sockets

_sockets: ISocketData[] = []

Protected _targetNode

_targetNode: Node | null = null

This field is only visible from within internal.

duration

duration: number = 1

单次动画的持续时间,秒。(动画长度)

readonly

frameRate

frameRate: number = 0

speed

speed: number = 1

播放速率。

default:

1.0

time

time: number = 0

动画当前累计播放的时间,单位为秒。

default

0

weight

weight: number = 0

The weight.

Accessors

clip

current

  • get current(): number

curveLoaded

  • get curveLoaded(): boolean

delay

  • get delay(): number
  • set delay(value: number): void

isMotionless

  • get isMotionless(): boolean

isPaused

  • get isPaused(): boolean

isPlaying

  • get isPlaying(): boolean

length

  • get length(): number

name

  • get name(): string

ratio

  • get ratio(): number

repeatCount

  • get repeatCount(): number
  • set repeatCount(value: number): void

wrapMode

Methods

Protected sampleCurves

  • sampleCurves(ratio: number): void

Private sampleCurvesBaked

  • sampleCurvesBaked(ratio: number): void

setEventTarget

  • setEventTarget(target: any): void

allowLastFrameEvent

  • allowLastFrameEvent(allowed: boolean): void

destroy

  • destroy(): void

emit

  • emit(...args: any[]): void

initialize

  • initialize(root: Node): void

off

  • off(type: string, callback: Function, target?: any): void
  • deprecated

    Since V1.1.1, animation states were no longer defined as event targets. To process animation events, use Animation instead.

    Parameters

    • type: string
    • callback: Function
    • Optional target: any

    Returns void

on

  • on(type: string, callback: Function, target?: any): null | void
  • deprecated

    Since V1.1.1, animation states were no longer defined as event targets. To process animation events, use Animation instead.

    Parameters

    • type: string
    • callback: Function
    • Optional target: any

    Returns null | void

Private onBlendFinished

  • onBlendFinished(): void

Protected onError

  • onError(message: string): void

Protected onPause

  • onPause(): void

onPlay

  • onPlay(): void

Protected onResume

  • onResume(): void

Protected onStop

  • onStop(): void

once

  • once(type: string, callback: Function, target?: any): null | void
  • deprecated

    Since V1.1.1, animation states were no longer defined as event targets. To process animation events, use Animation instead.

    Parameters

    • type: string
    • callback: Function
    • Optional target: any

    Returns null | void

pause

  • pause(): void

play

  • play(): void

rebuildSocketCurves

  • rebuildSocketCurves(sockets: Socket[]): void

resume

  • resume(): void

sample

setTime

  • setTime(time: number): void

step

  • step(): void

stop

  • stop(): void

update

  • update(delta: number): void

Generated using TypeDoc