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

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

401. 文本进阶使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...ber, font: string, color: string, textAlign: string): FillTextCmd { return this.addCmd(FillTextCmd.create(text, x, y, font, color, textAlign, 0, "")); } 这里重点介绍一下fillText中font属性与其它几个文本font属性区别,fillText示例代码如下: /** * 组件被激活后执行...

来源: Laya3.0_文档 发布时间: 20251010

402. List滚动条问题 [ 66%]

...下: (function (_super){ function MarketItem() { MarketItem.__super.call(this); this.size(312, 462); // {id:1,name:"10金豆-测试",price:0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res\\common\\BalanceSellDlg\\xiaodou.png",hot:1,orderCount:9} // 背景 var bg_image = ne...

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

403. 位图字体的制作与使用(JavaScript-LayaAir基础篇(JS)-文本) [ 66%]

...fnt与png文件同名 mBitmapFont.loadFont("res/test.fnt",new Laya.Handler(this,onLoaded)); function onLoaded(){ init(); } function init(){ //如果位图字体中,没放空格,最好设置一个空格宽度 mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(mFontName,mBitmapFont); var ...

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

404. 排行榜上的玩家头像绘制问题 [ 66%]

....setData(dataT) } FriendRankListView.prototype.setData = function (data) { this.sList.dataSource = data; } Prajna • 2018-05-16 17:16 什么错贴出来啊? 187*****279 • 2018-05-23 17:55 @Prajna:嗯,代码和报错截图都上传了,帮我看下,谢谢咯

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

405. 用laya自带的ui编辑器 编辑了一个ui界面,怎么加载啊? 怎么写代码让这个ui界面, 在程序运行时,显示出来啊? [ 66%]

...?   STATICATTR$(TestPageUI,         ['uiView',function(){return this.uiView={"type":"View","child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,...

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

406. frameLoop 函数,可以知道每帧调用的时间吗? [ 66%]

...op 函数,可以知道每帧调用的时间吗? Laya.timer.frameLoop(1,this,this.xx)  可以知道每次调用 this.xx的时间吗?如果有怎么得到。 2018-04-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

407. js进度,进度,js场景进度效果 [ 66%]

...ame = 'Game'; window[className] = (function(original) { function Class() { this.arr = [ "res/atlas/lucky8.json", "res/atlas/lucky8/lewinlineicons.json", "res/atlas/lucky8/setting.json", "res/atlas/lucky8/setView.json", "res/atlas/lucky8/kj.json", "res/atlas/lucky8/mh.json", "res/atlas/lucky8/light.j...

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

408. 问一下这个问题要怎么改啊? [ 66%]

... picUrl = str; picX = x; picY = y; Laya.loader.load(picUrl, Handler.create(this, showBgImg)); } private function showBgImg():void { pic = new Image(); pic.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } }   Main.as package { import laya.display.*; import ...

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

409. Cannot read property 'rayCast' of undefined [ 66%]

...ort default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = t...

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

410. TimeLine运行的小问题 [ 66%]

...ddChild(sp); var timeLine:TimeLine=new TimeLine(); timeLine.on(Event.LABEL,this,onLabel); timeLine.addLabel("A",0).to(sp,{rotation:360},700) .addLabel("B",0).to(sp,{scaleY:0.7},200) .addLabel("C",0).to(sp,{scaleY:1},200); timeLine.play(0,false); } private function onLabel(text:String):void { trace(t...

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