• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 698 项符合查询结果, 库内数据总量为 30,938 项。 (搜索耗时: 0.0063 秒)

451. 如何获取animation的node节点? [ 44%]

...i] = skill._graphics._one; // 储存渲染后的小切片备用 Laya.timer.once(10, this, function () { try{ ani._frames[i]._one = skillAniArray[i]; // 将渲染后的小切片追加到动画中 }catch(e) { console.log('warning: animation in loading'); // 过于频繁加载动画时给予警告 } })...

来源: Laya_社区 发布时间: 20190215

452. laya.physics.Physics [ 43%]

...事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 Ev...

来源: Laya2.0_api 发布时间: 20190513

453. laya.html.dom.HTMLIframeElement_API3.0 [ 43%]

...oyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_height get_scaleX get_scaleY get_transform get_visible get_width gl...

来源: Laya3.0_api 发布时间: 20231102

454. 自定义shader-边缘光照shader [ 43%]

...d(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude.once(Laya.Event.HIERARCHY_LOADED, this, function () { var customMaterial1 = new CustomMaterial(); customMaterial1.setDiffuseTexture(Laya.Texture2D.load("../../res/threeDimen/skinModel/dude/Assets/dude/head.png")); customMater...

来源: Laya_示例 发布时间: 20250315

455. laya.html.dom.HTMLDivElement_API3.0 [ 43%]

...oyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_height get_scaleX get_scaleY get_transform get_visible get_width gl...

来源: Laya3.0_api 发布时间: 20231102

456. 分享:List相关(Item增删功能) [ 43%]

...UI界面 listP = new ListPageUI(); Laya.stage.addChild(listP); Laya.timer.once(1000,this,onAdd);//1000毫秒后初始化list数据 listP.add.on(Event.CLICK,this,onAddClick);//点击添加按钮 listP.remove.on(Event.CLICK,this,onRemoveClick);//点击删除按钮 } private function onAdd():void { //...

来源: Laya_社区 发布时间: 20170313

457. Laya2.6、2.7等支持async、await编译经验分享 [ 42%]

...async testWait10s() { return new Promise((resolve,reject)=>{ Laya.timer.once(10000,this,()=>{ console.log("10s后") resolve() }) }) }  如果有什么问题,欢迎大家一起来分享感恩。 附件 : --> regenerator.runtime_.zip 2020-07-05 添加评论 免费帖 --> 分享 微博 QZONE ...

来源: Laya_社区 发布时间: 20200705

458. socket大型项目回调 [ 42%]

... = egret.WebSocket.TYPE_BINARY; this.socket.on(Laya.Event.OPEN, this, this.onConnect); this.socket.on(Laya.Event.CLOSE, this, this.onClose); this.socket.on(Laya.Event.ERROR, this, this.onIOError); this.socket.on(Laya.Event.MESSAGE, this, this.onMessage); this.socket.connect(host,port); } public on(e...

来源: Laya_社区 发布时间: 20180119

459. native打包Android APP 运行一段时间opengl报错导致app重启 [ 42%]

...pengl报错导致app重启 打包app运行一段时间,发现重新调用oncreate,看log发现opengl报错。 log如下: 2018-11-23 17:28:52.456 1657-1657/com.android.bluetooth E/BluetoothMapService: Unexpected error! 2018-11-23 17:28:52.459 10354-10354/com.xzgame.rainbow E/LayaBox: >>&g...

来源: Laya_社区 发布时间: 20181123

460. laya.physics.PhysicsDebugDraw_API3.0 [ 42%]

...oyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_height get_scaleX get_scaleY get_transform ...

来源: Laya3.0_api 发布时间: 20231115