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 
- 参数 - index:number
 
getInt()
public getInt(index:number):number
- 获取自定义整数。 
- 支持版本:DragonBones 5.0 
- 运行平台:Web,Native 
- 参数 - index:number
 
getString()
public getString(index:number):string
- 获取自定义字符串。 
- 支持版本:DragonBones 5.0 
- 运行平台:Web,Native 
- 参数 - index:number
 
toString()
public toString():string
- 支持版本:all
- 运行平台:Web,Native

