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

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

691. 模拟器分辨率问题 [ 59%]

...e的宽高变化了:   printScreenInfo("aaa"); Laya.loader.load(resArr, Handler.create(this, this.onResLoaded, [this.mainuiView, winName, zOrder])); printScreenInfo("bbb"); private onResLoaded(parent:Laya.Node, winName:string, zOrder:number):void {     printScreenInfo("ccc");     this.doOpen(...

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

692. 关于movieClip播放swf的问题 [ 59%]

...th); emotionSwf.play(0,false); emotionSwf.playTo(0, emotionSwf.count, Laya.Handler.create(this,() => { emotionSwf.stop(); emotion.visible = false; })); 如上代码,发现调研play(0,false)后,动画还是一直循环播放,还是emotionSwf.count一直为0,导致播放完成的回调会...

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

693. 摄像机动画的使用(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 59%]

...了。 ```typescript Scene3D.load('LayaScene_scene/Conventional/scene.ls',Handler.create(this,function(scene:Scene3D):void{ Laya.stage.addChild(scene); })); ``` ![](img/2.gif)(图2)

来源: Laya2.0_文档 发布时间: 20210715

694. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 59%]

...java Laya.Tween.to(letterText, { y : 300 }, 1000, Laya.Ease.bounceIn, Laya.Handler.create(this,this.changeColor,[letterText]), i * 100); ``` 由于需要增加新的引用,这次贴出全部的示例代码。 TweenDemo.ts: ```typescript // 程序入口 class TweenDemo{ constructor() { //初始...

来源: Laya2.0_文档 发布时间: 20210715

695. laya微信小游戏加载外部素材失败 急急急 [ 59%]

...", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onComplete), Laya.Handler.create(this, onLoading)); } function onLoading(progress){ console.log("加载进度: " + progress); } function onComplete(){ console.log('onComplete'); wx.showModal({ title: '提...

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

696. Animation如何获取图集单帧实际宽高 [ 59%]

...机: 网页: 代码: ani.loadAtlas("res/atlas/hero_"+_model+".atlas",Handler.create(this,onLoad)); function onLoad():void { this.addChild(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE ...

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

697. TiledMap制作横板地图 报错 [ 59%]

...json",new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height), Laya.Handler.create(this,this.onLoaded));报错的地方为:laya.tiledmap.js第178行: var tImageArray=relativePath.split("/");调试显示relativePath为undefined。 稍微跟踪了下,是141行在初始化tTileSet时就没...

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

698. 预加载图集文集在小游戏端导致内存过高 [ 59%]

...30_loading.json", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded1)); 使用这种方法动态加载资源导致内存很高,该怎么办? 和官网推荐的material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = mat...

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

699. 分享:Skeleton下Event.LABLE('label')事件的使用 [ 59%]

....on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); play(); } private function onEvent(e:*):void { var tEventData:EventData = e as EventData; Laya.stage.addChild(mLabelSprite); mLabelSprite.x = mStartX; mLabelSprite.y = mStartY; mLabelSprite.graphics.clear(); mLabelS...

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

700. 加载的nativeimage处理 [ 59%]

... 3 个回复 cuixueying 赞同来自: { Laya.loader.load("ui/image.png", Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var texture:Texture=Loader.getRes("ui/image.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture); Laya.stage.addCh...

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