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

大约有 1,546 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0065 秒)

1451. 水平滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...hange); this.owner.addChild(hs); } private onChange(value: number): void { console.log("滑块的位置:" + value); } } 运行效果: (动图2-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2024-09-10 16:27:03 img{cursor:pointer}

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

1452. LayaAir功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 43%]

...LayaNative1.0版本中,要调试项目中的JavaScript代码只能调用console.log或者alert函数。在layaNative2.0版本中正式支持使用Chrome浏览器调试JavaScript代码。可以在Chrome的调试器里对代码进行断点的添加,代码追踪等功能。 **测试App支持扫码...

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

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

...微信 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.WebGL; var Loader = laya.n...

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

1454. TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' [ 43%]

... Scene.__proto.renderSubmit (http://127.0.0.1:55942/game/code.js:81631:42) console.error errorReport @ WAGame.js:3 thirdErrorReport @ WAGame.js:3 (anonymous) @ WAGame.js:3 (anonymous) @ WAGame.js:8 (anonymous) @ WAGame.js:4 a @ gamePage.html:1 window.onerror requestAnimationFrame (async) wxRequestAn...

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

1455. 鼠标交互-键盘交互 [ 43%]

...oardInspector() { let numKeyDown = keyDownList.length; let newText = '[ '; console.log(numKeyDown); for (let i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = S...

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

1456. 如何获取animation的node节点? [ 42%]

...killAniArray[i]; // 将渲染后的小切片追加到动画中 }catch(e) { console.log('warning: animation in loading'); // 过于频繁加载动画时给予警告 } }) } ani.interval = Math.round(1000/aniProps.mc[options.srcName].frameRate); // 设置动画的帧率 ani.autoPlay = options.autoPlay;...

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

1457. 骨骼动画-换装 [ 42%]

...onError); this.mFactory.loadAni(this.mAniPath); } private onError():void { console.log("error"); } private parseComplete():void { //创建模式为1,可以启用换装 this.mArmature = this.mFactory.buildArmature(1); this.mArmature.x = this.mStartX; this.mArmature.y = this.mStartY; Laya.stage.addC...

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

1458. Laya2.0导入protobufjs第三方库,报错找不到文件 [ 42%]

....d.ts", "node_modules/@types/node/cluster.d.ts", "node_modules/@types/node/console.d.ts", "node_modules/@types/node/constants.d.ts", "node_modules/@types/node/crypto.d.ts", "node_modules/@types/node/dgram.d.ts", "node_modules/@types/node/dns.d.ts", "node_modules/@types/node/domain.d.ts", "node_modul...

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

1459. 为什么自定义shader大图正常,小图就被缩小了 [ 42%]

...ray = []; var texWidth = texture.width; var texHeight = texture.height; // console.log("liuyi",texWidth); //定义颜色值,取值范围0~1浮点 var red = 1; var greed = 1; var blue = 1; var alpha = 1; //在顶点数组中放入4个顶点 //每个顶点的数据:(坐标x,坐标y...

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

1460. stage.clientScaleX/Y这个值有什么用呢? [ 42%]

...ge.scaleMode无论怎么设, 这两个值都是1.....   我在源码里面console发现计算了两次屏幕的缩放比.... 第二次就有我想要的值了....  这是为什么呢?? 附件 : --> 2017-08-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...

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