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

大约有 703 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0130 秒)

451. laya.ui.ProgressBar_API3.0 [ 45%]

...ogressBar 的网格信息。 progressBar.changeHandler = new Handler(this, onChange);//设置 progressBar 的value值改变时执行的处理器。 Laya.stage.addChild(progressBar);//将 progressBar 添加到显示列表。 Laya.timer.once(3000, this, changeValue);//设定 3000ms(毫秒)后,...

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

452. LayaAir下TTF字体的使用方式? [ 45%]

..."; text.font="hu" text.pos(600,600); Laya.stage.addChild(text); Laya.timer.once(1000,this,onLoop); } private function onLoop():void { var text:Text=new Text(); text.fontSize=40; text.color="#FF00FF"; text.text="嘻嘻嘻嘻嘻"; text.font="hu" Laya.stage.addChild(text); } } }  注意:  首次用...

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

453. laya.d3.core.particleShuriKen.ShurikenParticleRender [ 45%]

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

来源: laya_api 发布时间: 20170929

454. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 44%]

...图集后,取图集内资源报错。 MsgMgr.instance.init(); Laya.timer.once(1000,this,function():void{ beginLoad(); }); private function beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:...

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

455. Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture [ 44%]

...D  if (!tex.getIsReady()) {                     tex.once(Event.READY, this, this.drawImage, [tex, x, y, width, height]);                 }   导致 tex 找不到 getIsReady 方法报错     报错堆栈 TypeError: tex.getIsReady is not a function at G...

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

456. 如何获取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

457. 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

458. 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

459. 自定义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_示例 发布时间: 20260303

460. 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