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

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

491. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 84%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本方...

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

492. 区块地图-PerspectiveWall [ 84%]

...E; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.bgColor = "#232628"; this.createMap(); } private createMap(): void { this.tiledMap = new TiledMap(); this.tiledMap.createMap("../../res/tiledMap/perspective_walls.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } } } new l...

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

493. 关于removeChildren、 destroy和destroyChildren的疑惑 [ 84%]

...ar SightBead = (function () { function sightBeadSprite() { SightBead.super(this); this.name = 'sightBead'; this.graphics.drawCircle(0,0,40,null,'#ff0000',1); this.graphics.drawLine(-45,0,45,0,'#ff0000',1); this.graphics.drawLine(0,45,0,-45,'#ff0000',1); this.alpha = 0; Laya.stage.addChild(this); // ...

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

494. 请问如何获取组件的子节点的数量? [ 84%]

...相关的链接 提交 2 个回复 w1114367261 赞同来自: JokerKKK i = this.var.numChildren;//得到该父物体下的所有子物体个数 this.var.getchildAt("要获取的物体的下标int类型")//根据子物体下标获取单个物体 2018-04-18 1 1 分享 微博 QZONE 微信 173*****441 ...

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

495. 缓动-简单的Tween [ 84%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var terminalX: number = 200; var characterA: Sprite = this.createCharacter("../../res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; var characterB: Sprite =...

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

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

...; //创建动画模板 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

497. 在native下 Laya.Browser.window.Blob不存在 [ 84%]

...ion (ss) { var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, completeHandler); xhr.once(Laya.Event.ERROR, this, errorHandler); xhr.send("http://192.168.10.108:35553/re ... ot%3B, "", "get", "arraybuffer"); function completeHandler(data) { //加载完成返回的data是arraybuffer...

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

498. list图片路径没问题.为什么图片就是不显示.啊啊啊也,求解答 [ 84%]

...uot;"+itemlo.image, m_label:""+allEquipArr[i].amount}); } } this.otherItem_list.array = data; this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender); fengjingmeng • 2018-03-21 16:44 你这个是list的逻辑,item的更新逻辑呢。item拿到数据后你做了...

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

499. 屏幕适配的缩放模式详解(TypeScript-2D基础篇(TS)-屏幕适配) [ 84%]

...      //设置适配模式         Laya.stage.scaleMode = this.modes;         //设置舞台背景色         Laya.stage.bgColor  = "#ffff99";             //实例一个背景         var bg = new Image();         bg.skin = "res/img/l...

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

500. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 84%]

...{ htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmet...

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