大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0077 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...建为Sprite3D类型Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete));//预加载完成后回调private onCreateComplete():void{//实例化加载并创建好的3D对象var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room.lh");this.scene.addChild(sprite3D);} 2018-...
来源: Laya_社区 发布时间: 20180817
...片段 MyChat.prototype.ScrollToBottom=function(caller,callback){ var page=this.msgList.length - 8; if(page < 0)page=0; page +=1; if(caller) this.list.tweenTo(page,0,Handler.create(caller,callback)); else this.list.tweenTo(page,0); } 2019-02-26 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20190226
...bgl 模式下 graphics 绘制线条粗细一样 canvas 正常 版本最新 this.graphics.drawRect(0,0,100,100,null,"#000000",2) 效果: 代码: var sp:Sprite = new Sprite(); this.addChild(sp); sp.pos(200, 200); ...
来源: Laya_社区 发布时间: 20180510
...nsole.log("test step ~~~~~~~~~~~~~~~~~~~~~~3") bridge.call("testString:", "this is a str ~") } } } 然后在安卓那边的JSBridge里添加代码: public static String testString(String value) { Log.d("0", "I got str " + value); return "LayaBox"; }调用的时候,就报错说找不到。 202...
来源: Laya_社区 发布时间: 20211111
...(); .... } private function _setDetailNum(value){ switch (value) { case 1: this._shaderValues.addDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM2); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE...
来源: Laya2.0_文档 发布时间: 20210714
...ent.EVENT_CLOSE, (event) => { //触发条件,手机端把网全关了 this.testWebSocket();//这种方式会导致在短时间内App的websocket out of memory //这种方式短时间内没发现会崩溃 // setTimeout(()=>{ // this.testWebSocket(); // },3000); }); client.on(PinusWSClientEven...
来源: Laya_社区 发布时间: 20190507
...; xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("https://www.baidu.com/","","get","text"); function processHandler(data){ console.log(data); console.log("11...
来源: Laya_社区 发布时间: 20180830
...嗎 2022-02-22 0 0 分享 微博 QZONE 微信 之肖 赞同来自: 试试this.vertify1.on(Laya.Event.CLICK,this,this._onInputVerify,[1) 2022-02-22 0 1 分享 微博 QZONE 微信 凱文 赞同来自: 幫推個幫推個 2022-03-01 0 0 分享 微博 QZONE 微信 Laya_Yan 赞同来自: 提供示例看...
来源: Laya_社区 发布时间: 20220222
...随着上下滑动 而跟着滑动 设置为完代码之后效果不好使 this.rootSceneView.PropList.vScrollBarSkin = "uires/Doudizhuicon/icon_gundongniu.png" this.rootSceneView.PropList.scrollBar.autoHide = true this.rootSceneView.PropList.scrollBar.scaleBar = true 效果图如附件:滚动条...
来源: Laya_社区 发布时间: 20180328
...Event.CLICK,第二次无法出发click事件 xxx.on(Laya.Event.CLICK, xxx, this.RecordA);这个放在第一次执行for循环里,第一次for循环时,click是可以进this.RecordA这个函数里,在第二次执行for循环,点击click就不能进this.RecordA这个函数里 2018-04-10 添加...
来源: Laya_社区 发布时间: 20180410