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

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

561. Clip属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 56%]

...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this,onSkinLoaded)); } /***加载资源完成***/ private function onSkinLoaded(e:*=null):void { //显示背景图 showBg(); //创建计数器 createCounte...

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

562. 小白求助,关于时间轴动画如何设置播放一次后消失? [ 56%]

...白求助,关于时间轴动画如何设置播放一次后消失? Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { var tl = new Laya.Animation(); tl.loadAnimation("democesi.ani"); Laya.stage.addChild(tl); tl.play(); tl.pos(302,650); } 2018-01-1...

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

563. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 56%]

...; } private function beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = n...

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

564. 使用了模板中的confirmBox,可运行时提示取不到template下的按钮图片! [ 56%]

...提交 2 个回复 hamletborn 赞同来自: OK了,这个是需要  Laya.loader  进行预加载的! 2017-07-02 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 好的,有问题再联系~ 2017-07-02 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该...

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

565. 关于创建Sprite获取大小 [ 56%]

...调。这个是异步获取,如果你要单个获取的话 window.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _th...

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

566. 模型的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之模型和网格) [ 56%]

...。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMesh; //此时...

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

567. 模型的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之模型和网格) [ 56%]

...。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMesh; //此时...

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

568. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 56%]

... // 程序入口 class GameMain{ constructor() { Laya.init(1280,720); Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(...

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

569. swf的destroy的问题 [ 56%]

...op();     testUI.mc.destroy(); 之后对图集也进行下清理,Laya.loader.clearRes("res/atlas/flicker/image.json");就OK了 因为:destroy的时候movieclip把小图都清掉了,但是movieclip不知道你是用图集加载的,图集缓存文件还在,但是图集里的小图已经...

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

570. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 56%]

...; assets = ["../../res/ui/dialog (1).png", "../../res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); })(); function onSkinLoadComplete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.addChild(bg); var button = new Button(assets[1]); button.na...

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