AR_Engine_SDK
Functions | Variables
XEMeshAppliqueComponent.lua File Reference
类 XEMeshAppliqueComponent 继承关系图:
Inheritance graph

Functions

function XEMeshAppliqueComponent__XEAppliqueInfo new () end
 @type number More...
 
function XEMeshAppliqueComponent__XEMeshAppliqueOperater Release () end
 
function XEMeshAppliqueComponent Initialize (pActor) end
 @type string @readonly Component类型名 More...
 
function XEMeshAppliqueComponent Tick (fDel, bForceTick) end
 
function XEMeshAppliqueComponent Render (pViewport) end
 
function XEMeshAppliqueComponent PasteMeshApplique (info) end
 
function XEMeshAppliqueComponent RemoveMeshApplique (pAppliqueOper) end
 
function XEMeshAppliqueComponent RemoveMeshApplique (nIndex) end
 
function XEMeshAppliqueComponent GetAppliqueOperaters () end
 

Variables

 XEMeshAppliqueComponent = {}
 
XEMeshAppliqueComponent XE_APLQ_PT_UV = 0
 
XEMeshAppliqueComponent XE_APLQ_PT_NUM = 0
 
 XEMeshAppliqueComponent__XEAppliqueInfo = {}
 
XEMeshAppliqueComponent XEAppliqueInfo = XEMeshAppliqueComponent__XEAppliqueInfo
 
XEMeshAppliqueComponent__XEAppliqueInfo strAppliqueModelFile = ''
 @type string More...
 
XEMeshAppliqueComponent__XEAppliqueInfo strOriginSkin = ''
 @type string 原模型被补的skin名字 (不是路径,暴露给编辑器) More...
 
XEMeshAppliqueComponent__XEAppliqueInfo strOriginMeshName = ''
 @type string 原模型被补的mesh(暴露给编辑器) More...
 
XEMeshAppliqueComponent__XEAppliqueInfo eType = 0
 @type number 补丁方式, XE_APLQ_PT_UV: 通过UV匹配 More...
 
XEMeshAppliqueComponent__XEAppliqueInfo vPosToUVOffset = {}
 
XEMeshAppliqueComponent__XEAppliqueInfo fPosToUVScale = 0
 @type number 位置转UV的缩放 More...
 
XEMeshAppliqueComponent__XEAppliqueInfo fUVMatchDevi = 0
 @type number More...
 
XEMeshAppliqueComponent__XEAppliqueInfo fExpansionMesh = 0
 @type number 补丁网格,每个顶点向外位移距离,(理论上补丁网格和原模型会完全贴附,但是可能由于计算误差,导致由微小的间隙而出现的Z冲突,此值为补救方法。原模型为静态模型时,现状是不需要此值)(暴露给编辑器) More...
 

Function Documentation

◆ GetAppliqueOperaters()

function XEMeshAppliqueComponent GetAppliqueOperaters ( )

获取粘贴的补丁指针数组

Returns
XEAppliqueOperater[]

◆ Initialize()

function XEMeshAppliqueComponent Initialize ( pActor  )

@type string @readonly Component类型名

根据pActor初始化当前组件的部分数据,包含当前组件所属的XEActor及当前组件的索引等

Parameters
pActorXEActor 当前组件所属的XEActor,一般而言,每个XEActor都至少包含一个组件
Returns
void

◆ new()

@type number

@type XEMeshAppliqueComponent::XEAppliqueInfo

XEMeshAppliqueComponent_XEAppliqueInfo_new00

Returns
XEMeshAppliqueComponent__XEAppliqueInfo

@type number @type number[] XEMeshAppliqueComponent_XEMeshAppliqueOperater_new00

Returns
XEMeshAppliqueComponent__XEMeshAppliqueOperater

@type number @type number @type XEModelComponent @type string @type number @type XEMeshAppliqueOperater[] XEMeshAppliqueComponent_XEAppliqueOperater_new00

Returns
XEMeshAppliqueComponent__XEAppliqueOperater

XEMeshAppliqueComponent_new00

Returns
XEMeshAppliqueComponent

◆ PasteMeshApplique()

function XEMeshAppliqueComponent PasteMeshApplique ( info  )

在该组件的父组件对应的模型skin的Mesh上粘贴补丁

Parameters
infoXEMeshAppliqueComponent::XEAppliqueInfo 要粘贴的补丁信息
Returns
XEMeshAppliqueComponent__XEAppliqueOperater 粘贴成功,返回补丁指针,失败返回NULL

◆ Release()

XEMeshAppliqueComponent_XEMeshAppliqueOperater_Release00

Returns
void

XEMeshAppliqueComponent_XEAppliqueOperater_Release00

Returns
void

XEMeshAppliqueComponent_Release00

Returns
void

◆ RemoveMeshApplique() [1/2]

function XEMeshAppliqueComponent RemoveMeshApplique ( pAppliqueOper  )

根据补丁指针移除补丁

Parameters
pAppliqueOperXEMeshAppliqueComponent::XEAppliqueOperater 要移除的补丁指针
Returns
boolean 是否移除成功

◆ RemoveMeshApplique() [2/2]

function XEMeshAppliqueComponent RemoveMeshApplique ( nIndex  )

根据补丁索引移除补丁

Parameters
nIndexnumber 要移除的补丁索引
Returns
boolean 是否移除成功

◆ Render()

function XEMeshAppliqueComponent Render ( pViewport  )

渲染当前组件,此函数每帧都会被 XEActor 调用

Parameters
pViewportXEViewport
Returns
void

◆ Tick()

function XEMeshAppliqueComponent Tick ( fDel  ,
bForceTick   
)

更新当前组件的数据,此函数每帧都会被调用

Parameters
fDelnumber 每帧更新的时间间隔(ms)
bForceTickboolean 是否强制Tick.如果为true,不管当前组件是否隐藏,都会更新;如果为false,当前组件如果隐藏时不更新。
Returns
void

Variable Documentation

◆ eType

@type number 补丁方式, XE_APLQ_PT_UV: 通过UV匹配

◆ fExpansionMesh

@type number 补丁网格,每个顶点向外位移距离,(理论上补丁网格和原模型会完全贴附,但是可能由于计算误差,导致由微小的间隙而出现的Z冲突,此值为补救方法。原模型为静态模型时,现状是不需要此值)(暴露给编辑器)

◆ fPosToUVScale

@type number 位置转UV的缩放

◆ fUVMatchDevi

@type number

◆ strAppliqueModelFile

XEMeshAppliqueComponent__XEAppliqueInfo strAppliqueModelFile = ''

@type string

◆ strOriginMeshName

@type string 原模型被补的mesh(暴露给编辑器)

◆ strOriginSkin

@type string 原模型被补的skin名字 (不是路径,暴露给编辑器)

◆ vPosToUVOffset

◆ XE_APLQ_PT_NUM

XEMeshAppliqueComponent XE_APLQ_PT_NUM = 0

◆ XE_APLQ_PT_UV

XEMeshAppliqueComponent XE_APLQ_PT_UV = 0

◆ XEAppliqueInfo

◆ XEMeshAppliqueComponent

◆ XEMeshAppliqueComponent__XEAppliqueInfo