AR_Engine_SDK
载入中...
搜索中...
未找到
函数 | 变量
XUIAnimationComponent.lua 文件参考

#include <XUIAnimationComponent.h>

类 IXUIAnimationSequence 继承关系图:
Inheritance graph

#include <XUIAnimationComponent.h>

类 XUIAnimationComponent 继承关系图:
Inheritance graph

函数

function XUIAnimationValue new () end
 
function XUIAnimationValue GetFloat () end
 
function XUIAnimationValue SetFloat (value) end
 
function XUIAnimationValue GetVec2 () end
 
function XUIAnimationValue SetVec2 (value) end
 
function XUIAnimationValue GetVec3 () end
 
function XUIAnimationValue SetVec3 (value) end
 
function XUIAnimationValue GetVec4 () end
 
function XUIAnimationValue SetVec4 (value) end
 
function XUIAnimationValue GetColor () end
 
function XUIAnimationValue SetColor (value) end
 
function XUIAnimationValue SetZero () end
 
function IXUIAnimationSequence Play () end
 
function IXUIAnimationSequence Stop () end
 
function IXUIAnimationSequence Pause () end
 
function IXUIAnimationSequence SetLoop (bLoop) end
 
function IXUIAnimationSequence SetReverse (bReverse) end
 
function IXUIAnimationSequence IsLoop () end
 
function IXUIAnimationSequence IsReverse () end
 
function IXUIAnimationSequence IsPlaying () end
 
function XUIAnimationComponent Create (pNode) end
 
function XUIAnimationComponent Create () end
 
function XUIAnimationComponent SetAnimationType (eType) end
 
function XUIAnimationComponent GetAnimationType () end
 
function XUIAnimationComponent SetAnimationValue (val, start, index) end
 
function XUIAnimationComponent GetAnimationValue (start, index) end
 
function XUIAnimationComponent GetSubAnimationType (index) end
 
function XUIAnimationComponent AddSubAnimationItem (eType) end
 
function XUIAnimationComponent RemoveSubAnimationItems () end
 
function XUIAnimationComponent RemoveSubAnimationItem (index) end
 
function XUIAnimationComponent SetSubAnimationType (idx, eType) end
 
function XUIAnimationComponent GetSubAnimationNum () end
 
function XUIAnimationComponent SetDelay (value) end
 
function XUIAnimationComponent GetDelay () end
 
function XUIAnimationComponent SetDuration (value) end
 
function XUIAnimationComponent GetDuration () end
 
function XUIAnimationComponent SetEase (value) end
 
function XUIAnimationComponent GetEase () end
 
function XUIAnimationComponent SetRepeat (repeat) end
 
function XUIAnimationComponent GetRepeat () end
 
function XUIAnimationComponent SetUpdateCallBack (callback) end
 
function XUIAnimationComponent SetStartCallBack (callback) end
 
function XUIAnimationComponent SetCompleteCallBack (callback) end
 
function XUIAnimationComponent Stop (bComplete) end
 
function XUIAnimationComponent Jump (time) end
 
function XUIAnimationComponent SetSequencePath (path) end
 
function XUIAnimationComponent GetSequencePath () end
 
function XUIAnimationComponent GetSequencer () end
 

变量

 XUIAnimationValue = {}
 
XUIAnimationValue x = 0
 @type number
 
XUIAnimationValue y = 0
 @type number
 
XUIAnimationValue z = 0
 @type number
 
XUIAnimationValue w = 0
 @type number
 

函数说明

◆ AddSubAnimationItem()

function XUIAnimationComponent AddSubAnimationItem ( eType  )

XUIAnimationComponent_AddSubAnimationItem00

参数
eTypenumber
返回
XUIAnimationComponent

◆ Create() [1/2]

function XUIAnimationComponent Create ( )

XUIAnimationComponent_Create01

返回
XUIAnimationComponent

◆ Create() [2/2]

function XUIAnimationComponent Create ( pNode  )

创建一个XUILayoutComponent布局组件

参数
pNodeXUINode 目标节点
返回
XUIAnimationComponent 创建出的XUILayoutComponent组件

◆ GetAnimationType()

function XUIAnimationComponent GetAnimationType ( )

XUIAnimationComponent_GetAnimationType00

返回
number

◆ GetAnimationValue()

function XUIAnimationComponent GetAnimationValue ( start  ,
index   
)

XUIAnimationComponent_GetAnimationValue00

参数
startboolean
indexnumber
返回
XUIAnimationValue

◆ GetColor()

function XUIAnimationValue GetColor ( )

XUIAnimationValue_GetColor00

返回
XCOLORBASE

◆ GetDelay()

function XUIAnimationComponent GetDelay ( )

XUIAnimationComponent_GetDelay00

返回
number

◆ GetDuration()

function XUIAnimationComponent GetDuration ( )

XUIAnimationComponent_GetDuration00

返回
number

◆ GetEase()

function XUIAnimationComponent GetEase ( )

XUIAnimationComponent_GetEase00

返回
number

◆ GetFloat()

function XUIAnimationValue GetFloat ( )

XUIAnimationValue_GetFloat00

返回
number

◆ GetRepeat()

function XUIAnimationComponent GetRepeat ( )

XUIAnimationComponent_GetRepeat00

返回
number

◆ GetSequencePath()

function XUIAnimationComponent GetSequencePath ( )

XUIAnimationComponent_GetSequencePath00

返回
string

◆ GetSequencer()

function XUIAnimationComponent GetSequencer ( )

XUIAnimationComponent_GetSequencer00

返回
IXUIAnimationSequence

◆ GetSubAnimationNum()

function XUIAnimationComponent GetSubAnimationNum ( )

XUIAnimationComponent_GetSubAnimationNum00

返回
number

◆ GetSubAnimationType()

function XUIAnimationComponent GetSubAnimationType ( index  )

设置获取子动画类型

参数
indexnumber
返回
number

◆ GetVec2()

function XUIAnimationValue GetVec2 ( )

XUIAnimationValue_GetVec200

返回
XVECTOR2

◆ GetVec3()

function XUIAnimationValue GetVec3 ( )

XUIAnimationValue_GetVec300

返回
XVECTOR3

◆ GetVec4()

function XUIAnimationValue GetVec4 ( )

XUIAnimationValue_GetVec400

返回
XVECTOR4

◆ IsLoop()

function IXUIAnimationSequence IsLoop ( )

判断是否是循环播放状态

返回
boolean

◆ IsPlaying()

function IXUIAnimationSequence IsPlaying ( )

判断是否是正在播放状态

返回
boolean

◆ IsReverse()

function IXUIAnimationSequence IsReverse ( )

判断是否是反向播放状态

返回
boolean

◆ Jump()

function XUIAnimationComponent Jump ( time  )

XUIAnimationComponent_Jump00

参数
timenumber
返回
void

◆ new()

function XUIAnimationValue new ( )

XUIAnimationValue_new00

返回
XUIAnimationValue

◆ Pause()

function IXUIAnimationSequence Pause ( )

暂停播放

返回
void

◆ Play()

function IXUIAnimationSequence Play ( )

从头播放, 并且设置为非动画剪辑段播放模式

返回
void

◆ RemoveSubAnimationItem()

function XUIAnimationComponent RemoveSubAnimationItem ( index  )

XUIAnimationComponent_RemoveSubAnimationItem00

参数
indexnumber
返回
XUIAnimationComponent

◆ RemoveSubAnimationItems()

function XUIAnimationComponent RemoveSubAnimationItems ( )

XUIAnimationComponent_RemoveSubAnimationItems00

返回
XUIAnimationComponent

◆ SetAnimationType()

function XUIAnimationComponent SetAnimationType ( eType  )

设置动画类型

参数
eTypenumber
返回
XUIAnimationComponent

◆ SetAnimationValue()

function XUIAnimationComponent SetAnimationValue ( val  ,
start  ,
index   
)

设置获取动画起止值

参数
valXUIAnimationValue 数值,start:是否起始值:缺省true,index:大于等于0时为组动画中子动画索引
startboolean
indexnumber
返回
XUIAnimationComponent

◆ SetColor()

function XUIAnimationValue SetColor ( value  )

XUIAnimationValue_SetColor00

参数
valueXCOLORBASE
返回
void

◆ SetCompleteCallBack()

function XUIAnimationComponent SetCompleteCallBack ( callback  )

@manual xelua_XEngine_XUIAnimationComponent_SetCompleteCallBack_manual XUIAnimationComponent_SetCompleteCallBack_manual

参数
callbackstd::function<void(XUIAnimationComponent*animation)>
返回
XUIAnimationComponent

◆ SetDelay()

function XUIAnimationComponent SetDelay ( value  )

设置延迟播放时长

参数
valuenumber
返回
XUIAnimationComponent

◆ SetDuration()

function XUIAnimationComponent SetDuration ( value  )

设置播放时长

参数
valuenumber
返回
XUIAnimationComponent

◆ SetEase()

function XUIAnimationComponent SetEase ( value  )

设置缓动函数

参数
valuenumber
返回
XUIAnimationComponent

◆ SetFloat()

function XUIAnimationValue SetFloat ( value  )

XUIAnimationValue_SetFloat00

参数
valuenumber
返回
void

◆ SetLoop()

function IXUIAnimationSequence SetLoop ( bLoop  )

设置播放循环状态播放

参数
bLoopboolean
返回
void

◆ SetRepeat()

function XUIAnimationComponent SetRepeat ( repeat  )

设置缓动函数

参数
repeatnumber
返回
XUIAnimationComponent

◆ SetReverse()

function IXUIAnimationSequence SetReverse ( bReverse  )

设置播放反向状态

参数
bReverseboolean
返回
void

◆ SetSequencePath()

function XUIAnimationComponent SetSequencePath ( path  )

XUIAnimationComponent_SetSequencePath00

参数
pathstring
返回
XUIAnimationComponent

◆ SetStartCallBack()

function XUIAnimationComponent SetStartCallBack ( callback  )

@manual xelua_XEngine_XUIAnimationComponent_SetStartCallBack_manual XUIAnimationComponent_SetStartCallBack_manual

参数
callbackstd::function<void(XUIAnimationComponent*animation)>
返回
XUIAnimationComponent

◆ SetSubAnimationType()

function XUIAnimationComponent SetSubAnimationType ( idx  ,
eType   
)

XUIAnimationComponent_SetSubAnimationType00

参数
idxnumber
eTypenumber
返回
XUIAnimationComponent

◆ SetUpdateCallBack()

function XUIAnimationComponent SetUpdateCallBack ( callback  )

@manual xelua_XEngine_XUIAnimationComponent_SetUpdateCallBack_manual XUIAnimationComponent_SetUpdateCallBack_manual

参数
callbackstd::function<void(XUIAnimationComponent*animation)>
返回
XUIAnimationComponent

◆ SetVec2()

function XUIAnimationValue SetVec2 ( value  )

XUIAnimationValue_SetVec200

参数
valueXVECTOR2
返回
void

◆ SetVec3()

function XUIAnimationValue SetVec3 ( value  )

XUIAnimationValue_SetVec300

参数
valueXVECTOR3
返回
void

◆ SetVec4()

function XUIAnimationValue SetVec4 ( value  )

XUIAnimationValue_SetVec400

参数
valueXVECTOR4
返回
void

◆ SetZero()

function XUIAnimationValue SetZero ( )

XUIAnimationValue_SetZero00

返回
void

◆ Stop() [1/2]

function IXUIAnimationSequence Stop ( )

停止播放

返回
void

◆ Stop() [2/2]

function XUIAnimationComponent Stop ( bComplete  )

停止播放

参数
bCompleteboolean
返回
void

变量说明

◆ w

@type number

◆ x

@type number

◆ XUIAnimationValue

◆ y

@type number

◆ z

@type number