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

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

331. UI界面加载有哪些回调方法可用 [ 59%]

...Bounds的结果和之前一样,都是0. Rectangle {x: 0, y: 0, width: 0, height: 0} cuixueying • 2017-07-20 10:30 能提供一个简单的例子,我们看下你是怎么写的吗? peterz3g • 2017-07-20 10:43 好的,我总结一下目前遇到的问题,一会儿把代码发出来吧,...

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

332. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 59%]

... //label用于显示 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...

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

333. laya.device.media.Video [ 59%]

...口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite  height : Number[override] Video hitArea : * 可以设置一个Rectangle区域作为点击区域,或者设置一个HitArea实例作为点击区域,HitArea内可以设置可点击和不可点击区域。 如果不设置hit...

来源: laya_api 发布时间: 20170929

334. 2.0 Beta3版本中,runtime脚本的的问题 [ 58%]

...置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="mainscene.scene"; static sceneRoot:string=""; static deb...

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

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

... //label用于显示 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...

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

336. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 58%]

...pe.y = 100;             spe.width = 512;             spe.height = 512;             spe.size(512, 512);             Laya.stage.addChild(spe);             spe.graphics.drawRect(0, 0, 515, 515, "#996633", "#333333");             spe.on(Event.MOUSE_D...

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

337. 多重遮罩显示异常 [ 58%]

...ild(bg); this.panel = new Laya.Panel(); this.panel.width = 500; this.panel.height = 500; this.panel.vScrollBarSkin = ''; this.panel.hScrollBarSkin = ''; this.addChild(this.panel); let line = new Laya.Sprite(); line.size(1000, 20); line.pos(200, 200); line.graphics.drawRect(0, 0, 1000, 20, '#ccc'); l...

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

338. 要让2DUI跟随3D物件,比如说敌人头上有血条。请问要怎么做? [ 58%]

...out.x - this.hpNode.width / 2 this.hpNode.y = out.y + this.hpNode.height *3.5 //this.owner.transform 3d的物体 //this.hpNode 2d的ui   //3d坐标转2d屏幕坐标     /**      *       * @param {*} point 3d世界坐标      * @param {*} camera 摄像机    ...

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

339. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 58%]

...dFromAStarMap(texture): any { var textureWidth = texture.width; var textureHeight = texture.height; var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; for (var w = 0; w < textureWidth; w++) { var colaStarArr = aStarArr[w] = []; for (var h = 0; h < textureHeight; h++) { var...

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

340. laya.display.Sprite [ 58%]

...口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite  height : Number 显示对象的高度,单位为像素,默认为0。 此高度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请使用scale、scaleX、scaleY...

来源: laya_api 发布时间: 20170929