AR_Engine_SDK
|
Variables | |
XEAnimControllerBase = {} | |
XEAnimControllerBase | PS_UNKNOWN = 0 |
XEAnimControllerBase | PS_PLAY = 0 |
XEAnimControllerBase | PS_PAUSE = 0 |
XEAnimControllerBase | PS_STOP = 0 |
XEAnimControllerBase | AM_RUN = 0 |
XEAnimControllerBase | AM_EDIT = 0 |
XEAnimControllerBase | AM_RUN_CLIP_SECTION = 0 |
XEAnimControllerBase__AnimClipSection = {} | |
XEAnimControllerBase | AnimClipSection = XEAnimControllerBase__AnimClipSection |
XEAnimControllerBase__AnimClipSection | nSectionStart = 0 |
@type number More... | |
XEAnimControllerBase__AnimClipSection | nSectionEnd = 0 |
@type number More... | |
XEAnimControllerBase__AnimClipSection | nLoopNum = 0 |
@type number <= 0 means infinite More... | |
XEAnimControllerBase__AnimClipSection | nCurPlayLoopCount = 0 |
@type number current loop-playing count More... | |
XEAnimControllerBase__AnimClipSection | bActive = false |
@type boolean indicate the active status More... | |
XEAnimControllerBase__AnimClipSection | strClipName = '' |
@type string More... | |
function XEAnimControllerBase AddAnimClipSection | ( | ) |
添加一个空白动画剪辑段,请使用返回结构进行设置
function XEAnimControllerBase AddListener | ( | pListener | ) |
添加监听者
pListener | XEAnimControllerBase::Listener |
function XEAnimControllerBase FindAnimClipSectionByName | ( | szClipName | , |
bIgnoreActive | |||
) |
查找一个动画剪辑段,根据名称, bIgnoreActive是否忽略剪辑的激活状态
szClipName | string |
bIgnoreActive | boolean |
function XEAnimControllerBase FindAnimClipSectionByTimestamp | ( | nMicoTimeStamp | , |
bIgnoreActive | |||
) |
查找一个动画剪辑段,根据时刻, bIgnoreActive是否忽略剪辑的激活状态,in micro seconds.
nMicoTimeStamp | number |
bIgnoreActive | boolean |
function XEAnimControllerBase GetAnimListener | ( | ) |
获取当前所有监听者数组
function XEAnimControllerBase GetAnimPlayState | ( | ) |
获取动画播放控制状态
function XEAnimControllerBase GetAnimRunMode | ( | ) |
获取动画状态
function XEAnimControllerBase GetCurTime | ( | ) |
获取当前时间
function XEAnimControllerBase GetPlayClipSection | ( | ) |
获取当前设定的播放动画段
function XEAnimControllerBase GetPlayRate | ( | ) |
获取动画播放速率
function XEAnimControllerBase GetTimeLength | ( | ) |
计算动画控制器的运行时结束时间
function XEAnimControllerBase IsAnimRunMode | ( | ) |
判断动画是否是运行状态
function XEAnimControllerBase IsAutoPlay | ( | ) |
判断是否是自动播放状态
function XEAnimControllerBase IsLoop | ( | ) |
判断是否是循环播放状态
function XEAnimControllerBase IsPlaying | ( | ) |
判断是否是正在播放状态
function XEAnimControllerBase IsReverse | ( | ) |
判断是否是反向播放状态
function XEAnimControllerBase NavigateToAnimClipSectionHead | ( | szClipName | ) |
将播放时刻指针移动到指定剪辑段的头部
szClipName | string |
function XEAnimControllerBase NavigateToAnimClipSectionTail | ( | szClipName | ) |
将播放时刻指针移动到指定剪辑段的尾部
szClipName | string |
function XEAnimControllerBase__AnimClipSection new | ( | ) |
function XEAnimControllerBase Pause | ( | ) |
暂停播放
function XEAnimControllerBase Play | ( | ) |
从头播放, 并且设置为非动画剪辑段播放模式
function XEAnimControllerBase PlayClipSection | ( | szClipName | , |
nLoopNum | |||
) |
指明要特定播放的剪辑动画段, 使动画控制器只在该剪辑段内播放。如果nLoopNum <=0,则该动画段无限循环
szClipName | string |
nLoopNum | number |
function XEAnimControllerBase RemoveAnimClipSection | ( | szClipName | ) |
删除动画剪辑段, 如果szClipName为空,则删除所有
szClipName | string |
function XEAnimControllerBase RemoveListener | ( | pListener | ) |
移除监听者
pListener | XEAnimControllerBase::Listener |
function XEAnimControllerBase Resume | ( | ) |
恢复播放
function XEAnimControllerBase SetAnimPlayState | ( | ps | ) |
设置动画播放控制状态
ps | number |
function XEAnimControllerBase SetAnimRunMode | ( | em | ) |
设置动画状态
em | number |
function XEAnimControllerBase SetAutoPlay | ( | bAuto | ) |
设置动画自动播放状态
bAuto | boolean |
function XEAnimControllerBase SetLoop | ( | bLoop | ) |
设置播放循环状态播放
bLoop | boolean |
function XEAnimControllerBase SetPlayRate | ( | fRate | ) |
设置播放速率
fRate | number |
function XEAnimControllerBase SetReverse | ( | bReverse | ) |
设置播放反向状态
bReverse | boolean |
function XEAnimControllerBase SetTime | ( | nTime | ) |
定位播放器时刻, 单位为微秒
nTime | number |
function XEAnimControllerBase Stop | ( | ) |
停止播放
XEAnimControllerBase AM_EDIT = 0 |
XEAnimControllerBase AM_RUN = 0 |
XEAnimControllerBase AM_RUN_CLIP_SECTION = 0 |
XEAnimControllerBase AnimClipSection = XEAnimControllerBase__AnimClipSection |
XEAnimControllerBase__AnimClipSection bActive = false |
@type boolean indicate the active status
XEAnimControllerBase__AnimClipSection nCurPlayLoopCount = 0 |
@type number current loop-playing count
XEAnimControllerBase__AnimClipSection nLoopNum = 0 |
@type number <= 0 means infinite
XEAnimControllerBase__AnimClipSection nSectionEnd = 0 |
@type number
XEAnimControllerBase__AnimClipSection nSectionStart = 0 |
@type number
XEAnimControllerBase PS_PAUSE = 0 |
XEAnimControllerBase PS_PLAY = 0 |
XEAnimControllerBase PS_STOP = 0 |
XEAnimControllerBase PS_UNKNOWN = 0 |
XEAnimControllerBase__AnimClipSection strClipName = '' |
@type string
XEAnimControllerBase = {} |