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

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

581. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 82%]

...ayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7...

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

582. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 82%]

...码大致如下: Laya.loader.load('player/player.json',Laya.Handler.create(this, this.onLoaded),null); ----onComplate: Laya.Animation.createFrames(['player-left.png'], "walk-left"); 2016-06-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

583. 关于创建Sprite获取大小 [ 82%]

...于这个,如果需要width和height, new window.Laya.Rectangle(0, 0, this.img_width, this.img_height, '#FF0000'), 然后设置sprite.hitArea = rect. 但是这个其实很弱。 首先,这个rect不会随着图片的旋转而旋转,所以要做精细的碰撞检测得自己写逻辑 kezhiy...

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

584. 文本-下划线 [ 82%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { this.createText('left', 1, null, 100, 10); this.createText('center', 2, "#00BFFF", 155, 150); this.createText('right', 3, "#FF7F50", 210, 290); } private createText(align: s...

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

585. 内存优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 82%]

...颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1, this, onFrame); this.createTime = 0; function onFrame() { //如果创建对象时间为100帧间隔后 if (this.createTime >= 100) { //每200帧间隔创建30个雪花 for (var i = 0; i 640 + 20 || img1.scaleX 在一些特殊...

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

586. 动画添加了 滤镜,drawcall 次数暴增,这是为啥???? [ 82%]

...暴增,这是为啥????   var url = App.animManager.getUrl(id); this.ani.loadAtlas(url,null,id); this.ani.alpha = 0.5; this.ani.play(0, true); var grayMat = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]; //创建一个颜色滤镜对象,灰图 var scaleFilter = new Laya...

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

587. 深入理解LayaAir引擎架构和实现原理(一)跨平台引擎源码编译 [ 82%]

...s文件,先来看看入口函数start()[code] start() { return __awaiter(this, void 0, void 0, function* () { let json = JSON.parse(fs.readFileSync("outConfig.json")); this.BaseURL = emiter_1.emiter.BaseURL = json.from; this.outfile = json.out; this.createAS = json.createAS; this.layajsURL = json....

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

588. 列表嵌套另外一个列表 [ 82%]

...-23 10:57 那怎么找里面的那个list w1114367261 • 2018-05-23 11:57 this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index this.storelist.mouseHandler = new Handler(this,onMouse);//当list被点击时触发 并发送event,index } public function ...

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

589. 文字在框内滑动、滚动文本 [ 82%]

... Laya.init(800,800,Laya.WebGL); creatText(); function creatText(){      this.txt=new Laya.Text();      this.txt.overflow=Laya.Text.SCROLL;//必须是SCROLL才能实现滑动      this.txt.text="=========================================================================================\n" +  ...

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

590. LayaFlash:求ByteArray.jas ->readMultiByte对gb2312的实现翻译 [ 81%]

...          var value:String = "";             var max:int = this._position_ + len;             var c:int, c2:int;             // gb2312-encode             while (this._position_ < max) {                                  c = _data_....

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