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

大约有 1,761 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0070 秒)

1451. 请教Laya.BitmapFont加载位图文字不能显示的问题 [ 52%]

...ded():void { this.init(); } private init():void { this.mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(this.mFontName, this.mBitmapFont); var txt:Laya.Text = new Laya.Text(); txt.text = "武器坐骑角色"; txt.width = 250; txt.height = 250; txt.wordWrap = true; txt.align = "center"; tx...

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

1452. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 52%]

... var _lab = new Laya.Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize = 40; _lab.pos(200,200); Laya.stage.addChild(_lab); //给脚本的加强表现用方法赋值 _script.showMsgFunc = function () { this.text = "ShowMsg"; this.color = "red"; }.bind(_lab); })); ``` 最...

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

1453. Laya整合echarts示例(TypeScript) [ 52%]

...代码 var div:any = Laya.Browser.document.createElement("div"); div.style.width = "600px"; div.style.height = "400px"; Laya.Browser.document.body.appendChild(div); var myChart = new Laya.Browser.window.echarts.init(div); var option = { title: { text: 'ECharts 入门示例' }, tooltip: {}, legend: {...

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

1454. 3D文本纹理demo问题 [ 52%]

...lText is not a function             this.cxt.fillText(text, this.cav.width / 2, this.cav.height);                      ^^                                                    TypeError: this.cxt.fillText is not a function     at TextureManager.getWebCharBmp...

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

1455. LayaAir_AS3项目中,如何内嵌一个新的页面 [ 52%]

...    myiframe.style.left = "200px";             myiframe.style.width = "1000px";             myiframe.style.height = "800px";             myiframe.src = "http://ask.layabox.com/";             __JS__('document.body.appendChild(myiframe)');//添加在舞台上   ...

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

1456. 升级到1.78beta版后,包编译错误 [ 52%]

...number,...' is not assignable to type '(source: any, x: number, y: number, width: number, height: num ber, offsetX?: number, offsetY?: nu...'.       Types of parameters 'mipMap' and 'offsetX' are incompatible.         Type 'number' is not assignable to type 'boolean'.   2017-07-21 添加评...

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

1457. Laya.MovieClip() new的时候崩溃了,在线等,很急!!!! [ 52%]

...eClip(); this.swfAni.load(strSWF,true,strImg); this.swfAni.x = (Laya.stage.width -1900) / 2; this.swfAni.y = (Laya.stage.height - 1200) / 2; this.swfAni.zOrder = 3; this.swfAni.loop = false; this.swfAni.play(0,false); this.swfAni.visible = true; this.swfAni.on(laya.events.Event.COMPLETE, this, this....

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

1458. LayaBox如何多点触摸? [ 52%]

...tmapData(960, 640, false, 0xcccccc); var bmp:Bitmap = new Bitmap(bmd); bmp.width = 960; bmp.height = 640; var sp:Sprite = new Sprite(); sp.addChild(bmp); this.addChildAt(sp, 0); Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; sp.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin); } prote...

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

1459. MeshSprite3D的宽高如何修改? [ 52%]

...Sprite3D这个对象,怎么改宽高 Laya_Aaron • 2018-03-20 14:39 set width kaiqiw945 • 2018-03-20 14:40 box.setwidth,有这个api我就不发问了 Laya_Aaron • 2018-03-20 14:41 @kaiqiw945:api比较老了,我也看不全,都是点进去看源码 kaiqiw945 • 2018-03-20 14:44 BoxMesh...

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

1460. layabox可以做格子效果?可以帮忙看看吗? [ 52%]

...工程 赞同来自: gaowei2024 你用sprite的graphics.drawLine(0, 100, width, height, "#9B9B9B", 5)一条一条画即可 2017-12-30 1 8 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 gaowei2024 相关问题 Layabox 2.0 bate5 运行编译...

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