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

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

631. SpotLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 91%]

...,同时光照区域边缘也有衰减现象。 ```typescript //聚光灯 this.spotLight = this.scene.addChild(new Laya.SpotLight()); //设置聚光灯颜色 this.spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 this.spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0)...

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

632. laya微信打包问题很多呀,就是加了一些绘图api,就报错 [ 91%]

..._CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.drawSomething(); } private drawSomething(): void { this.sp = new Sprite(); Laya.stage.addChild(this.sp); //画线 this.sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 this.sp.graphics.drawLines(176...

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

633. Text的中划线(删除线) [ 91%]

...,但是不支持中划线,underline = true; 可以修改 laya.core.js this.underline && this.drawUnderline(textAlgin,x,y,i); __proto.drawUnderline=function(align,x,y,lineIndex){             var lineWidth=this._lineWidths[lineIndex];             switch (align){  ...

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

634. 网络和格式-Socket [ 91%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.connect(); } connect() { const Socket = Laya.Socket, Event = Laya.Event; socket = new Socket(); //socket.connect("echo.websocket.org", 80); socket.connectByUrl("ws://echo.websocket.org:80"); output = socket.output; socke...

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

635. spine 推荐使用方式 [ 91%]

...     */     __proto.destroyTexture=function(){         if(this._mainTexture!=null){             this._mainTexture.disposeBitmap();         }         this._needRecoverTexture = true;     }     /**      * 恢复纹理      */     __proto....

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

636. Resources already exist,is repeated loading 加载特效报重复加载 [ 91%]

...);                      //创建场景         this.scene = new Laya.Scene3D();         Laya.stage.addChild(this.scene);                     //添加相机         var camera = new Laya.Camera(0, 0.1, 100);         this.scene.add...

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

637. 我想移动容器来实现前进的动画,但是移动不了。这里的y有问题 但是又不知道改成什么 [ 91%]

...all"; Laya.stage.bgColor = "#232628"; showApe(); // Laya.timer.frameLoop(1,this,myLoop) })(); function showApe() { // 方法1:使用loadImage加载背景1 var bg1 = new Sprite(); bg1.loadImage("war/bc.png"); Laya.stage.addChild(bg1);   //加载背景2 var bg2 = new Sprite(); bg2.loadImage("war/bc...

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

638. 怎样复制bmf字体 [ 91%]

...    class cloneLabel extends Laya.Label { constructor(_label) { super(); this.align = _label.align; this.x = _label.x; this.y = _label.y; this.width = _label.width; this.height = _label.height; this.fontSize = _label.fontSize; this.color = _label.color; this.font = _label.font; } } 2018-05-17 添...

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

639. Warning!,this class[MiniAdpter] already exist: Object {} [ 91%]

Warning!,this class[MiniAdpter] already exist: Object {} Warning!,this class[MiniAdpter] already exist: Object {} 出现异常,代码无法正常运行 2018-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ...

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

640. HTMLDIVElement设置innerHTML时报错 [ 91%]

...为/** *获取对象的宽 */ __getset(0,__proto,'width',function(){ if (this._width)return this._width; return this.contextWidth; },[b]_super.prototype._$set_width[/b]);此次出问题的版本为/** *获取对象的宽 */ __getset(0,__proto,'width',function(){ if (this._width)return this._width; r...

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