大约有 4,034 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0079 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...,但是不支持中划线,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
...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
... */ __proto.destroyTexture=function(){ if(this._mainTexture!=null){ this._mainTexture.disposeBitmap(); } this._needRecoverTexture = true; } /** * 恢复纹理 */ __proto....
来源: Laya_社区 发布时间: 20201128
...); //创建场景 this.scene = new Laya.Scene3D(); Laya.stage.addChild(this.scene); //添加相机 var camera = new Laya.Camera(0, 0.1, 100); this.scene.add...
来源: Laya_社区 发布时间: 20190509
...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
... 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
...为/** *获取对象的宽 */ __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
Warning!,this class[MiniAdpter] already exist: Object {} Warning!,this class[MiniAdpter] already exist: Object {} 出现异常,代码无法正常运行 2018-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ...
来源: Laya_社区 发布时间: 20180925
...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
...置为竖型的图集。 现在问题来了。根据代码 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