AR_Engine_SDK
|
Functions | |
function IXSkinUpatedListener | Update (pUpdatedSkin) end |
function XSkin__XMeshInfo | new () end |
@type string More... | |
function XSkin | Release () end |
function XSkin | GetSkinDatXFile () end |
function XSkin | GetRenderMeshRawIndex (szMeshName, nLODIndex) end |
function XSkin | GetSkeletonFile () end |
function XSkin | GetSkinFile () end |
function XSkin | GetLODNum () end |
function XSkin | GetRawMeshNum (nLODIndex) end |
function XSkin | GetRawMeshName (nRawMeshIndex, nLODIndex) end |
function XSkin | GetRawMeshMtlIns (szMeshName, nLODIndex) end |
function XSkin | GetRenderMeshNum (nLODIndex) end |
function XSkin | GetRenderMeshName (nRenderMeshIndex, nLODIndex) end |
function XSkin | GetSkinData () end |
function XSkin | SetSkinData (szSkinDatXFile) end |
function XSkin | HasBlendShapeTargets () end |
function XSkin | GetBlendShapeTargetNum () end |
function XSkin | GetBlendShapeTarget (nIndex) end |
function XSkin | HasBlendShapeTarget (nRenderMeshIndex) end |
function XSkin | SetSkeletonFile (szSkeletonFile) end |
function XSkin | Save (bRecursive) end |
function XSkin | AddSkinUpdatedListener (pListener) end |
function XSkin | RemoveSkinUpdatedListener (pListener) end |
function XSkin | GetCorrespondingRenderMeshStartIndex (szRawMeshName, nLODIndex) end |
function XSkin | GetCorrespondingRenderMeshNum (szRawMeshName, nLODIndex) end |
function XSkin | GetFaceNum () end |
function XSkin | IsCloth (szMeshName) end |
function XSkin | GetClothName (szMeshName) end |
function XSkin | SetClothName (szMeshName, szClothName) end |
function XSkin | GetClothMaterialName (szMeshName) end |
function XSkin | AddBlendShapeTarget (pBlendShape) end |
Variables | |
IXSkinUpatedListener = {} | |
function XSkin AddBlendShapeTarget | ( | pBlendShape | ) |
添加XSkinBlendShapeTarget
pBlendShape | XSkinBlendShapeTarget 要添加的XSkinBlendShapeTarget指针 |
function XSkin AddSkinUpdatedListener | ( | pListener | ) |
function XSkin GetBlendShapeTarget | ( | nIndex | ) |
获取当前Skin中某个morph信息指针
nIndex | number morph索引 |
获取当前Skin中某个morph指针
nIndex | number morph索引 |
function XSkin GetBlendShapeTargetNum | ( | ) |
判断当前Skin是否有morph信息
function XSkin GetClothMaterialName | ( | szMeshName | ) |
获取某个Mesh对应的布料材质名称
szMeshName | string Mesh名称 |
function XSkin GetClothName | ( | szMeshName | ) |
获取某个Mesh对应的布料名称
szMeshName | string Mesh名称 |
function XSkin GetCorrespondingRenderMeshNum | ( | szRawMeshName | , |
nLODIndex | |||
) |
获取指定RawMesh名称和指定LOD索引的RenderMesh个数
szRawMeshName | string RawMesh名称 |
nLODIndex | number 指定的LOD索引,默认为0. |
function XSkin GetCorrespondingRenderMeshStartIndex | ( | szRawMeshName | , |
nLODIndex | |||
) |
获取指定RawMesh名称和指定LOD索引对应的RenderMesh起始索引
szRawMeshName | string RawMesh名称 |
nLODIndex | number 指定的LOD索引,默认为0. |
function XSkin GetFaceNum | ( | ) |
获取当前Skin对应的总的三角面个数
function XSkin GetLODNum | ( | ) |
获取当前Skin所有LOD数目
function XSkin GetRawMeshMtlIns | ( | szMeshName | , |
nLODIndex | |||
) |
根据Mesh名称和LOD索引获取对应的RawMesh材质实例
szMeshName | string Mesh名称 |
nLODIndex | number 指定LOD索引,默认为0 |
function XSkin GetRawMeshName | ( | nRawMeshIndex | , |
nLODIndex | |||
) |
根据RawMesh索引和LOD索引获取对应的RawMesh名称
nRawMeshIndex | number 指定RawMesh索引 |
nLODIndex | number 指定LOD索引,默认为0 |
function XSkin GetRawMeshNum | ( | nLODIndex | ) |
获取当前Skin指定LOD索引对应的所有RawMesh数目
nLODIndex | number 指定LOD索引,默认为0 |
function XSkin GetRenderMeshName | ( | nRenderMeshIndex | , |
nLODIndex | |||
) |
根据RenderMesh索引和LOD索引获取对应的RenderMesh名称
nRenderMeshIndex | number |
nLODIndex | number 指定LOD索引,默认为0 |
function XSkin GetRenderMeshNum | ( | nLODIndex | ) |
获取当前Skin指定LOD索引对应的所有RenderMesh数目
nLODIndex | number 指定LOD索引,默认为0 |
function XSkin GetRenderMeshRawIndex | ( | szMeshName | , |
nLODIndex | |||
) |
根据RenderMesh名称获取对应的RawMesh索引
szMeshName | string Mesh名称 |
nLODIndex | number 指定LOD索引,默认为0 |
function XSkin GetSkeletonFile | ( | ) |
获取当前Skin对应的骨架文件名称
function XSkin GetSkinDatXFile | ( | ) |
获取SkinDatXFile
function XSkin GetSkinFile | ( | ) |
获取对应的文件名称
function XSkin HasBlendShapeTarget | ( | nRenderMeshIndex | ) |
判断指定RenderMesh是否有morph信息
nRenderMeshIndex | number 指定的RenderMesh索引 |
function XSkin HasBlendShapeTargets | ( | ) |
判断当前Skin是否有morph信息
function XSkin IsCloth | ( | szMeshName | ) |
判断某个Mesh是否是布料Mesh
szMeshName | string Mesh名称 |
function XSkin__XMeshInfo new | ( | ) |
@type string
@type number @type IXMaterialInstance @type boolean @type string @type string 用于自动匹配,模型导出时设置,之后不修改 XSkin_XMeshInfo_new00
function XSkin Release | ( | ) |
释放资源
function XSkin RemoveSkinUpdatedListener | ( | pListener | ) |
function XSkin Save | ( | bRecursive | ) |
保存当前Skin信息
bRecursive | boolean 是否递归遍历数据 |
function XSkin SetClothName | ( | szMeshName | , |
szClothName | |||
) |
设置某个Mesh对应的布料名称
szMeshName | string Mesh名称 |
szClothName | string 布料名称 |
function XSkin SetSkeletonFile | ( | szSkeletonFile | ) |
设置当前Skin对应的骨架文件名
szSkeletonFile | string Skin对应的骨架文件名 |
function XSkin SetSkinData | ( | szSkinDatXFile | ) |
设置当前Skin对应的SkinData
szSkinDatXFile | string SkinData资源文件 |
function IXSkinUpatedListener Update | ( | pUpdatedSkin | ) |
IXSkinUpatedListener = {} |