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

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

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

...in{ 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(img); var imgMask:Laya.Image ...

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

112. 在UI类里调用启动类的静态函数失败了 [ 66%]

...: "res/beijing/beijing2.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded), Laya.Handler.create(this, this.onLoading)); } static aaa(): void { } private onLoaded(...

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

113. IOs使用手动删除本地资源再次进去加载问题 [ 66%]

...n onLoaded() {     var res_array = [         {url : "res/atlas/comp.atlas", type : Laya.Loader.ATLAS},     ]     Laya.loader.load(res_array, Handler.create(null, onLoaded2));      }  function onLoaded2() { Laya.stage.addChild(new TestUI()); }当用这种方式分步加载资...

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

114. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 65%]

...e.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("comp/...

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

115. 安卓无论怎么打开都白屏,IOS无问题 [ 64%]

...始调用的function里的一句  var tmpitem_t = Laya.loader.getRes('./comp/custom_assets/group0_0.png',);无论我把url改成什么,把这段代码放到哪里,安卓就会白屏,我甚至删掉了一些其他一些Laya.getloader.getRes,还是会白屏,而且不报错,PC端正常,I...

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

116. LayaBox HelloWorld实战 [ 64%]

....Dialog(); dialog.width=300; dialog.height=600; //var bg = new Laya.Image('comp/img_bg.png'); //dialog.addChild(bg); var button = new Laya.Button('comp/button.png'); button.label='Hello World!'; button.name = Laya.Dialog.CLOSE; button.width=260; button.height=500; button.pos(35, 35); dialog.addChild...

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

117. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...his.txtarea.overflow = "scroll"; //文本溢出 this.txtarea.skin = "atlas/comp/textarea.png"; //皮肤 this.txtarea.borderColor = "#f6ff03" //边框颜色 this.txtarea.scrollType = Laya.ScrollType.Vertical; //滚动方式 this.txtarea.vScrollBarSkin = "atlas/comp/vscroll.png"; //滚动条皮肤 } }...

来源: Laya3.0_文档 发布时间: 20251010

118. 滤镜的集中实现 [ 63%]

... Laya.stage.bgColor="#fffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Handler.create(this,completeLoad),null,Loader.ATLAS); } public function completeLoad():void { //原始位图 createImg(200,50); //红色滤镜 createRedFilter(); //创建发光滤镜位图**/ createGlowFilter(); //...

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

119. 单选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...毕,此方法只执行一次 onAwake(): void { this.radio.skin = "atlas/comp/radio.png"; //皮肤 this.radio.stateNum = 3; //皮肤状态 this.radio.label = "确定"; //文本标签 this.radio.labelFont = "宋体"; //文本标签字体 this.radio.labelSize = 20; //文本标签字体大小 this.rad...

来源: Laya3.0_文档 发布时间: 20251010

120. Panel初始化BUG [ 62%]

...1-15 18:42 改成这样试试看 onEnable(): void { Laya.loader.load("comp/image.png", Laya.Handler.create(this, this.onResReady)); } private onResReady() { let panel = new Laya.Panel(); Laya.stage.addChild(panel); panel.graphics.drawRect(0, 0, 300, 300, "#ffcccc"); panel.width =...

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