跳到主要内容

AnimationClip

Ploy3D / AnimationClip

Class: AnimationClip

动画片段实例(动画数据管理驱动目标数组)。

Hierarchy

Table of contents

Constructors

Accessors

Methods

Constructors

constructor

new AnimationClip(id)

构造函数。

Parameters

NameTypeDescription
idnumber资源实例ID。

Overrides

Resource.constructor

Accessors

classid

get classid(): ClassID

实例类型ID。

Returns

ClassID

Inherited from

Resource.classid


guid

get guid(): string

资源全球唯一ID。

Returns

string

Inherited from

Resource.guid


instanceID

get instanceID(): number

实例ID。

Returns

number

Inherited from

Resource.instanceID


internalPtr

get internalPtr(): io_ptr

实例内部指针。

Returns

io_ptr

Inherited from

Resource.internalPtr


label

get label(): string

实例用户可理解的外部标签。

Returns

string

Inherited from

Resource.label

set label(label): void

Parameters

NameType
labelstring

Returns

void

Inherited from

Resource.label


name

get name(): string

动画片段名称。

Returns

string


package

get package(): Package

资源所属资源包。

Returns

Package

Inherited from

Resource.package


state

get state(): ResState

实例状态。

Returns

ResState

Inherited from

Resource.state

Methods

Clear

Clear(): void

清除资源内部状态。

Returns

void

Inherited from

Resource.Clear


Init

Init(_package, _asset): Promise<AnimationClip>

异步初始化资源实例

Parameters

NameTypeDescription
_packagePackage资源包实例。
_assetAsset资源数据。

Returns

Promise<AnimationClip>

返回异步对象。

Inherited from

Resource.Init