大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0072 秒)
Laya_社区(3324) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = material; ``` (图4) ##### 法线贴图 **Normal maps(...
来源: Laya2.0_文档 发布时间: 20210714
... 微信 Laya_Aaron 赞同来自: onGreen(){ console.log("换成绿锤子") this.greenPitchUp.visible=true; this.bluePitchUp.visible=false; let player=Player.instance; // player.anSk.showSlotSkinByIndex("HarmGreen",1); player.anSk.replaceSlotSkinByIndex("HarmGreen",1,0);//这里是0,0,更不行 p...
来源: Laya_社区 发布时间: 20181114
...去舞台焦点(切出游戏)的处理 Laya.stage.on(Laya.Event.BLUR, this, () => { _sound.stop(); }); //获得舞台焦点(切回游戏)的处理 Laya.stage.on(Laya.Event.FOCUS, this, () => { _sound.play(0); }); …… ``` ### 六、音乐与音效播放的完整示例 该示例的完整代...
来源: Laya2.0_文档 发布时间: 20210715
...一旦代码改正确,就有错误了。 gameSubContextThirdScriptError this._canvasTransform.identity is not a function;at requestAnimationFrame callback function TypeError: this._canvasTransform.identity is not a function at Stage.__proto.setScreenSize (http://127.0.0.1:60853/game/su ... 3...
来源: Laya_社区 发布时间: 20180504
...示在了底板上,具体显示如图片。 代码如下: var light = this.MainScene3D.getChildByName("DirectionalLight") as Laya.DirectionLight; light.color = new Laya.Vector3(1, 1, 1); light.shadow = true; light.shadowDistance = 1; light.shadowPCFType = 3; light.shadowResolution = 1024; light....
来源: Laya_社区 发布时间: 20191223
...点击偏移,可以改源码: laya.core.js第12581行 this._point.setTo(e.pageX || e.clientX,e.pageY || e.clientY); 改为 this._point.setTo((e.pageX || e.clientX)-Browser._container.offsetLeft,e.pageY || e.clientY); 2019-05-30 1 0 分享 微博 QZONE 微信 cuixueying 赞同来...
来源: Laya_社区 发布时间: 20170518
... cw/w' + Laya.Browser.clientWidth + '/' + Laya.Browser.width;// + ', r=' + this.row + ',' + this.col; txt.pos(0, 0); Laya.stage.addChild(txt); } } 代码很简单,什么都没有jsh就是获取宽高。只测试了Android、iPhone6两个手机,iPhone6就出了两个...
来源: Laya_社区 发布时间: 20170403
... 17:01 同问,偏差的非常大 let vectory = new Laya.Vector3(30,0,0); this.rigidbody.linearVelocity = vectory; console.log(this.rigidbody.linearVelocity); 获取得到的值确是 Vector3 {x: -0.20082436501979828, y: 0, z: 0.20082436501979828} z轴分量应该位0才对,就算是近似值x轴...
来源: Laya_社区 发布时间: 20181022
...遮罩层 var times=800;//持久时间 Laya.stage.on(Laya.Event.MOUSE_MOVE,this,mousemove);//事件绑定,当鼠标移动时触发mousemove事件 //把声明的第一个老婆变成灰色老婆(通过添加灰色的色彩滤镜) var grayscaleMat = [0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094,...
来源: Laya_社区 发布时间: 20171018
...加载一个lh特效,在加载完成回调中进行位置和大小改变 this.lz.transform.position = new Laya.Vector3(1000, 1000, 1000); this.lz.transform.localScale = new Laya.Vector3(3, 3, 3); 并且确实改变了对应的值。但是渲染的效果并没有变化 附件 : --> LayaScene_Effect...
来源: Laya_社区 发布时间: 20180327