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

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

361. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 44%]

...th 1080, height 2408, stride 4352, fd 106 01-06 17:34:41.531 902 1210 I C01400/DISP: [Mmap@allocator.cpp:273] buffer handle size 10479616, width 1080, height 2408, stride 4352, fd 106, format: <private>, phy 0x0, usage 0xb, viraddr 0x0000000000000000 01-06 17:34:41.531 335 335 I C02c11/APPSPAW...

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

362. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 44%]

... //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600, 400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //按钮资源路径 var skin = "./res/img/btn_test.png"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.cre...

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

363. Skeleton骨骼动画内存泄漏 [ 43%]

...private teComplete():void{ this.sk = this.te.buildArmature(0); this.sk.x = 400; this.sk.y = 700; this.sk.play(0, true); Laya.stage.addChild(this.sk); } Demo如下: 附件 : --> skTest.zip 2019-03-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

364. 垂直滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...der = new Laya.VSlider(); vs.skin = "vslider.png"; vs.height = 300; vs.pos(400, 50); vs.min = 0; vs.max = 100; vs.value = 50; vs.tick = 1; vs.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(vs); } private onChange(value: number): void { console.log("滑块的位置:" + v...

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

365. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 43%]

...5 0 0 分享 微博 QZONE 微信 jonahzheng 赞同来自: /*Laya.init(600, 400); var aa = '1234567'; console.log(aa.substring(0,3));*/ (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya....

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

366. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 43%]

...{ //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ ...

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

367. 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 [ 43%]

...te static aa:Child; private static bb:Child; constructor() { Laya.init(600,400); this.init(); } private init(){ LayaSample.aa = new Child(); LayaSample.aa.num("1"); LayaSample.bb = new Child(); LayaSample.bb.num("2"); setTimeout(function () { let s = LayaSample.aa.shuchu();//输出这个组件num,...

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

368. HScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 43%]

...ollBar.skin = "res/ui/hscroll.png"; //设置宽度 this.hScrollBar.width = 400; //设置位置 this.hScrollBar.pos(150, 170); //最低滚动位置数字 this.hScrollBar.min = 0; //最高滚动位置数字 this.hScrollBar.max = 100; //滚动变化事件回调 this.hScrollBar.changeHandler = new Handl...

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

369. VScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 43%]

...ollBar.skin = "res/ui/vscroll.png"; //设置宽度 this.vScrollBar.width = 400; //设置位置 this.vScrollBar.pos(150, 170); //最低滚动位置数字 this.vScrollBar.min = 0; //最高滚动位置数字 this.vScrollBar.max = 100; //滚动变化事件回调 this.vScrollBar.changeHandler = new Handl...

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

370. WebSocket发送与接收数据(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 43%]

...,声明一个Byte实例: ```typescript //初始化引擎 Laya.init(600,400,Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //...

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