大约有 432 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0039 秒)
Laya_社区(163) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(58) Laya_示例(28) laya_api(14) Laya3.0_文档(12) Laya2.0_示例(5)
...00)); this.camera.transform.translate(new Laya.Vector3(0, 1, 3)); //camera.addComponent(CameraMoveScript); this.camera.clearColor = null; } Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); MousePickingScene.prototype.lateRender = function (state) { MousePickingScene.__super.prototype....
来源: Laya_社区 发布时间: 20170323
...s.scene.addChild(land); var camera = land.getChildByName("Camera"); camera.addComponent(CMS);//控制脚本 console.log(camera); } 2019-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 苏栢 相关问题 unity导出粒...
来源: Laya_社区 发布时间: 20180807
...a.Vector3(4, 4, 4); obj.transform.rotate(new Laya.Vector3(0, 0.9, 0)); obj.addComponent(BoxControlScript); //旋转方向与角度设置 //var vect = new Laya.Vector3(0,1,0); //每10毫秒旋转一次 //Laya.timer.loop(10,null,function(){ //obj.transform.rotate(vect,false,false); //}); })); })); })(...
来源: Laya_社区 发布时间: 20200611
...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
...oy-pma.skel").then(() => { //添加spine组件 this.spine = this.sprite.addComponent(Laya.Spine2DRenderNode); this.spine.source = "resources/boy/spineboy-pma.skel"; this.spine.animationName = "walk"; }); } } 另外,spine的GPU渲染优化,默认是开启的,不需要开发者做额外的操...
来源: Laya3.0_文档 发布时间: 20250104
... var camera:Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); })); ```
来源: Laya2.0_文档 发布时间: 20210714
...); //创建约束 var configurableConstraint:ConfigurableConstraint = boxA.addComponent(ConfigurableConstraint); //为约束设置两个连接刚体 configurableConstraint.setConnectRigidBody(boxARigid,boxBRigid); ``` - 2.设置锚点anchor和连接锚点connectAnchor ```typescript //设置锚点anc...
来源: Laya2.0_文档 发布时间: 20210715
...ish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); var anifish = fish.addComponent(Laya.SkinAnimations); anifish.templet = Laya.AnimationTemplet.load("fish/denglongyu/FBXtoolsdaochu/denglongyu.lsani"); anifish.player.playByFrame(0,0.5,2147483647,0,30,30);;//游动 新版的就是没注释的...
来源: Laya_社区 发布时间: 20171206
... = false; //加载网格碰撞器组件 var sprite3d1MeshCollider=moveArea.addComponent(Laya.MeshCollider); //官方js例子里少了下面这行 sprite3d1MeshCollider.mesh = moveArea.meshFilter.sharedMesh; 2018-01-20 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20180118
...ody3D); //创建约束 var configurableConstraint:ConfigurableJoint = boxA.addComponent(ConfigurableConstraint); //为约束设置两个连接刚体 configurableConstraint.setConnectRigidBody(boxARigid,boxBRigid); ``` - 2.设置锚点anchor和连接锚点connectAnchor ```typescript //设置锚点anc...
来源: Laya2.0_文档 发布时间: 20210714