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

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

641. 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

642. 网络和格式-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_示例 发布时间: 20250225

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

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

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

644. 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

645. 我想移动容器来实现前进的动画,但是移动不了。这里的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

646. 怎样复制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

647. 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

648. 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

649. 基于Cannon.js的物理系统(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 91%]

...r中使用Cannon.js** - 1.创建盒型MeshSprite3D ```typescript var box = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))); ``` - 2.为精灵添加CannonRigidbody3D组件 ```typescript var rigidBody = box.addComponent(CannonRigidbody3D); ``` - 3.设置碰撞器形状 ```ty...

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

650. FontClip问题 [ 91%]

...置为竖型的图集。 现在问题来了。根据代码 for (var i=0,sz=this._valueArr.length;i < sz;i++){   var index=this._indexMap[this._valueArr.charAt(i)];   if (!this.sources[index])continue ;   texture=this.sources[index];   if (isHorizontal)this.graphics.drawTexture(texture,dX+...

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