跳到主要内容

dragonBones.UserData

   dragonBones

   public class UserData

继承    dragonBones.UserData → dragonBones.BaseObject

  • 用户自定义数据。

公共属性

属性
floats : Array<number>
- 自定义浮点数
ints : Array<number>
- 自定义整数
strings : Array<string>
- 自定义字符串

公共方法

方法
getFloat(index:number):number
- 获取自定义浮点数
getInt(index:number):number
- 获取自定义整数
getString(index:number):string
- 获取自定义字符串
toString():string
[静态]

属性详细信息

floats

floats : Array<number>

  • 支持版本:DragonBones 5.0

  • 运行平台:Web,Native

  • 自定义浮点数。

ints

ints : Array<number>

  • 支持版本:DragonBones 5.0

  • 运行平台:Web,Native

  • 自定义整数。

strings

strings : Array<string>

  • 支持版本:DragonBones 5.0

  • 运行平台:Web,Native

  • 自定义字符串。

方法详细信息

getFloat()

public getFloat(index:number):number

  • 获取自定义浮点数。

  • 支持版本:DragonBones 5.0

  • 运行平台:Web,Native

  • 参数

getInt()

public getInt(index:number):number

  • 获取自定义整数。

  • 支持版本:DragonBones 5.0

  • 运行平台:Web,Native

  • 参数

getString()

public getString(index:number):string

  • 获取自定义字符串。

  • 支持版本:DragonBones 5.0

  • 运行平台:Web,Native

  • 参数

toString()

public toString():string

  • 支持版本:all
  • 运行平台:Web,Native