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

大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0080 秒)

351. 内置骨骼动画 · LayaAir3.3 · 引擎文档 · LAYABOX [ 94%]

...en((templet: Laya.Templet) => { //创建模式为1,可以启用换装 this.mArmature = templet.buildArmature(0); this.mArmature.x = 300; this.mArmature.y = 350; this.mArmature.scale(0.5, 0.5); this.owner.addChild(this.mArmature); //设置动画播放完成后,调用completeHandler继续播放...

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

352. HScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 94%]

...ndler = Laya.Handler; var WebGL = Laya.WebGL; /***水平滚动条资源**/ this.skins = ["res/ui/hscroll.png", "res/ui/hscroll$bar.png", "res/ui/hscroll$down.png", "res/ui/hscroll$up.png"]; Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平...

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

353. LAYA js 1.7.12 Tween 使用时回调时 core报错 [ 94%]

...下 2017-11-12 0 1 分享 微博 QZONE 微信 Vivapercuore 赞同来自: this.body = new Laya.Animation(); this.body.loadAtlas(config[this.type].imgBang, Laya.Handler.create(this, this.onLoad)); this.body.width = config[this.type].width this.body.height = config[this.type].height onLoad(){ Tween.to(...

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

354. VScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 94%]

...ndler = Laya.Handler; var WebGL = Laya.WebGL; /***垂直滚动条资源**/ this.skins = ["res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.png"]; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.al...

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

355. list只能显示一个图片 [ 94%]

...值 for (i=1;i<10;i++) { var item = {pic:{skin:'cards/'+i+'tong.jpg'}}; this.data.push(item); } console.log(this.data); this.list1.dataSource = this.data; this.list1.x = 50; this.list1.y = 500; this.list1.getChildAt(0).height = 100; this.list1.vScrollBarSkin = ""; this.list1.hScrollBarSkin = "com...

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

356. Laya.stage.on(Laya.Event.RESIZE,this, this.ChangeSize); [ 94%]

Laya.stage.on(Laya.Event.RESIZE,this, this.ChangeSize); private ChangeSize() {         console.log("---------------")         if(Laya.Browser.window.innerHeight < Laya.Browser.window.innerWidth) {             console.log("横屏")         } else {             console.log(...

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

357. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 94%]

...存在,内存中场景及引用其的对象无法销毁         this.scene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D;          this.camera = new Laya.Camera();         this.camera.transform.translate(new Laya.Vector3(0, 2, 5));         th...

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

358. 关于切换图片的问题 [ 94%]

...prite; private flag: boolean = false; constructor() { Laya.init(1000,800); this.img = new Laya.Sprite; this.img.loadImage(this.plane1); Laya.stage.addChild(this.img); this.img.graphics.clear(); this.img.loadImage(this.plane2); Laya.stage.addChild(this.img) } } new Main(); 出来的结果是两张图...

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

359. Image加载完成后的图片大小重设问题 [ 94%]

...;        init();     }     public init ():void     {         this.bg_img.loadImage("ui/bg.jpg",0,0,Laya.stage.width,Laya.stage.height,Laya.Handler.create(this,this.onComplete));         Laya.stage.on(Laya.Event.RESIZE,this,this.onResize);     }     onComplete():void     {   ...

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

360. HtmlDivElement宽度设置错误 [ 94%]

...port default class HtmlTest extends Laya.Sprite { constructor() { super(); this.init(); } init() { this.bg = new Laya.Sprite(); this.bg.graphics.drawRect(0, 0, 200, 200, '#ccc'); this.addChild(this.bg); this.htmlTxt = new Laya.HTMLDivElement(); this.htmlTxt.style.fontSize = 20; this.htmlTxt.style.wi...

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