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

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

241. 苹果上架有问题啊 , !!!!!! [ 80%]

....5.2 and section 3.3.2 of the Apple Developer Program License Agreement. This code, combined with a remote resource, can facilitate significant changes to your app’s behavior compared to when it was initially reviewed for the App Store. While you may not be using this functionality currently, it...

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

242. UI加载完成后无法获取控件的大小——超详细版问题 [ 79%]

...ay.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHANGE, this, this.fitDOMElements_scroll); } private fitDOMElements(a, b, c, d, e, f): void { co...

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

243. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 79%]

...; //创建动画模板 templet = new Templet(); templet.on(Event.COMPLETE, this, parseComplete); templet.on(Event.ERROR, this, onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); } private function onError():void { trace("parse error"); } private function parseComplete():...

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

244. replaceSlotSkinName对于spine换肤不成功 [ 79%]

... m_templet : Laya.Templet; constructor() { Laya.init(1334,750,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.m_templet.on(Laya.Event.ERROR,this,this.onError); this.m_templet.loadAni("res/spine/goblins/goblins.sk"); } private o...

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

245. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 79%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果。而script脚本获取只能通过this.owner.getChildByName("xxx") 等方式获取节点** - **建议:如果是页面级的逻辑,需要频繁访问页面内多个...

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

246. 物理引擎-布 [ 79%]

...)(); function setup() { initMatter(); initWorld(); Laya.stage.on("resize", this, onResize); } function initMatter() { var gameWorld = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render...

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

247. Sprite-新手引导 [ 79%]

...= "bitmap"; Laya.stage.addChild(guideContainer); gameContainer.on("click", this, nextStep); //绘制遮罩区,含透明度,可见游戏背景 var maskArea = new Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); guideContainer.addChi...

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

248. Sprite-新手引导 [ 79%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createPage(); } createPage() { const Sprite = Laya.Sprite; // 绘制底图 gameContainer = new Sprite(); Laya.stage.addChild(gameContainer); gameContainer.loadImage("res/guide/crazy_snowball.png"); gameContainer.on(Laya....

来源: Laya2.0_示例 发布时间: 20251209

249. t._addReference is not a function [ 79%]

...解决了,供参考: Laya.loader.load(chapterBG, Laya.Handler.create(this, this.onBGLoaded, [chapterBG])/* , Laya.Handler.create(this, this.onBGLoadProgress) */); 第三个参数打开在某些条件下会出t._addReference is not a function 可能是加载进度回调的时候跑到纹理回调...

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

250. 为什么点击图片会有穿透事件的功能??费解 [ 79%]

... 下面的圆形金币是图片,我添加了 on(Laya.Event.MOUSE_DOWN, this,this.mouseHandlerDown,); on(Laya.Event.MOUSE_UP, this,this.mouseHandlerUp,[i]);[/i] [i] [/i] [i]为什么在这个bg.png上面点击,下面的金币也会有点击事件?[/i] 附件 : --> 2018-01-31 添加评论 免费...

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