AR_Engine_SDK
|
Functions | |
function XEPrefabComponent | new () end |
function XEPrefabComponent | GetTypeName () end |
@type string @readonly Component类型名 More... | |
function XEPrefabComponent | Release () end |
function XEPrefabComponent | Tick (fDel, bForceTick) end |
function XEPrefabComponent | Render (pViewport) end |
function XEPrefabComponent | LoadAsset (pPath) end |
function XEPrefabComponent | Unload () end |
function XEPrefabComponent | GetPrefabInstance () end |
function XEPrefabComponent | AttachPrefabInstance (pPrefabIns) end |
function XEPrefabComponent | RayPick (hr) end |
Variables | |
XEPrefabComponent = {} | |
function XEPrefabComponent AttachPrefabInstance | ( | pPrefabIns | ) |
function XEPrefabComponent GetPrefabInstance | ( | ) |
function XEPrefabComponent GetTypeName | ( | ) |
@type string @readonly Component类型名
XEPrefabComponent_GetTypeName00
function XEPrefabComponent LoadAsset | ( | pPath | ) |
加载 Prefab文件
pPath | string prefab文件路径,此路径是相对工程文件夹的xscene文件的路径. |
function XEPrefabComponent new | ( | ) |
XEPrefabComponent_new00
function XEPrefabComponent RayPick | ( | hr | ) |
射线拾取(只拾取当前组件,不包括child)
hr | XEHitResult [in][out]拾取结果结构体,包含输入的射线起始位置和方向;输出的拾取到的XEActor、拾取到的3D场景的坐标点等,具体参考XEHitResult的介绍. |
function XEPrefabComponent Release | ( | ) |
释放资源
function XEPrefabComponent Render | ( | pViewport | ) |
function XEPrefabComponent Tick | ( | fDel | , |
bForceTick | |||
) |
更新当前组件的数据,此函数每帧都会被调用
fDel | number 每帧更新的时间间隔(ms) |
bForceTick | boolean 是否强制Tick.如果为true,不管当前组件是否隐藏,都会更新;如果为false,当前组件如果隐藏时不更新。 |
function XEPrefabComponent Unload | ( | ) |
释放Prefab资源
XEPrefabComponent = {} |