Object_kernel
Ploy3D • Docs
Ploy3D / Object_kernel
Class: Object_kernel
3D对象内核实现。
Extends
Base_kernel
<Object3D
, typeofObject_member_index
>
Constructors
new Object_kernel()
new Object_kernel(
_global
):Object_kernel
构造函数。
Parameters
• _global: Ploy3D
引擎实例。
Returns
Overrides
Miaoverse.Base_kernel<Object3D, typeof Object_member_index>.constructor
Methods
Create()
Create(
scene
):Promise
<Object3D
>
创建3D对象实例。
Parameters
• scene: Scene
Returns
Promise
<Object3D
>
返回3D对象实例。
Get()
Get<
N
>(ptr
,key
):N
获取资源内核实例属性值。
Type Parameters
• N
Parameters
• ptr: never
资源内核实例指针。
• key: "index"
| "name"
| "id"
| "source"
| "children"
| "next"
| "parent"
| "depth"
| "instance"
| "updated"
| "magic"
| "version"
| "byteSize"
| "refCount"
| "uuid"
| "writeTS"
| "readTS"
| "last"
| "camera"
| "light"
| "reserved"
| "enabled"
| "flags"
| "lastSib"
| "nextSib"
| "parentTS"
| "gisTS"
| "childCount"
| "nextEdit"
| "nextDraw"
| "scene"
| "worldRotation"
| "reserved2"
| "wfmMat"
| "mfwMat"
| "layers"
| "worldLLMC"
| "localPosition"
| "altitude"
| "localScale"
| "localRotation"
| "meshRenderer"
| "animator"
| "prefab"
| "unused2"
| "unused3"
资源内核实现的数据结构成员名称。
Returns
N
返回对应属性值。
Inherited from
GetInstanceByID()
GetInstanceByID(
id
):Object3D
根据资源实例ID获取资源实例。
Parameters
• id: number
资源实例ID。
Returns
返回资源实例。
Inherited from
GetInstanceByPtr()
GetInstanceByPtr(
ptr
):Object3D
资源内核实例指针获取资源实例。
Parameters
• ptr: never
资源内核实例指针。
Returns
返回资源实例。
Inherited from
Set()
Set(
ptr
,key
,value
):void
设置资源内核实例属性值。
Parameters
• ptr: never
资源内核实例指针。
• key: "index"
| "name"
| "id"
| "source"
| "children"
| "next"
| "parent"
| "depth"
| "instance"
| "updated"
| "magic"
| "version"
| "byteSize"
| "refCount"
| "uuid"
| "writeTS"
| "readTS"
| "last"
| "camera"
| "light"
| "reserved"
| "enabled"
| "flags"
| "lastSib"
| "nextSib"
| "parentTS"
| "gisTS"
| "childCount"
| "nextEdit"
| "nextDraw"
| "scene"
| "worldRotation"
| "reserved2"
| "wfmMat"
| "mfwMat"
| "layers"
| "worldLLMC"
| "localPosition"
| "altitude"
| "localScale"
| "localRotation"
| "meshRenderer"
| "animator"
| "prefab"
| "unused2"
| "unused3"
资源内核实现的数据结构成员名称。
• value: any
属性值。
Returns
void