大约有 425 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
Laya_社区(160) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(53) Laya_示例(28) laya_api(14) Laya3.0_文档(13) Laya2.0_示例(5)
...sition=new Vector3(0, 5, 10); //加入摄像机移动控制脚本 //camera.addComponent(CameraMoveScript); //添加蒙皮动画角色模型 var role3D:Sprite3D=Laya.loader.getRes("res/LayaScene_layaScene/layaScene.lh"); //加载到场景 scene.addChild(role3D); } } 附件 : --> LayaScene_layaScene.r...
来源: Laya_社区 发布时间: 20190416
...ody3D); //创建约束 var configurableConstraint:ConfigurableJoint = boxA.addComponent(ConfigurableConstraint); //为约束设置两个连接刚体 configurableConstraint.setConnectRigidBody(boxARigid,boxBRigid); ``` - 2.设置锚点anchor和连接锚点connectAnchor ```typescript //设置锚点anc...
来源: Laya2.0_文档 发布时间: 20210715
...),false); warehouse1.name = "仓库1"; var warehouseCollider1 = warehouse1.addComponent(Laya.MeshCollider); warehouseCollider1.mesh = warehouse1.meshFilter.sharedMesh;错误信息: TypeError: Cannot read property 'sharedMesh' of undefined at onComplete (file:///E:/LayaWorkspace/javaScriptLaya/src/...
来源: Laya_社区 发布时间: 20171219
...ad property '_physicsUpdateList' of null 错误 添加 var collider = ball.addComponent(Laya.PhysicsCollider) 添加碰撞以后 再销毁 destroy这个对象的时候 就出错了 Uncaught TypeError: Cannot read property '_physicsUpdateList' of null at PhysicsCollider.__proto._onDestroy (...
来源: Laya_社区 发布时间: 20190415
... camera.transform.rotate(new Laya.Vector3(-40, 0, 0), true, false); camera.addComponent(CameraMoveScript); Laya.Texture2D.load("res/threeDimen/layabox.png", Laya.Handler.create(this, function (tex) { var radius = new Laya.Vector3(0, 0, 1); var radMatrix = new Laya.Matrix4x4(); var circleCount = 5...
来源: Laya_社区 发布时间: 20191112
...个继承自Laya.Sprite3D。使用Laya.Sprite3D.instantiate实例化,并addComponent自定义的类;添加到场景中,再移除;移除时发现脚本的onDisable调用了两次。断点调试后发现如下图的代码:首先在1的方法中调用_inActiveHierachy和inActiveScripts;然后...
来源: Laya_社区 发布时间: 20200623
...orm url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener is...
来源: Laya3.0_api 发布时间: 20231115
...orm url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener is...
来源: Laya3.0_api 发布时间: 20231115
...orm url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener is...
来源: Laya3.0_api 发布时间: 20231115
...orm url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clear clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListe...
来源: Laya3.0_api 发布时间: 20231115