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

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

1961. 3D基础显示对象 · LayaAir3.4 · 引擎文档 · LAYABOX [ 74%]

...hongMaterial(); boxRender.sharedMaterial = boxMaterial; // 添加到场景 this.scene.addChild(box); // 设置位置 box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); /* 球体 */ let sphere = new Laya.Sprite3D; let sphereMesh ...

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

1962. 滤镜效果 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...a.ColorFilter = new Laya.ColorFilter(); //给Image组件添加颜色滤镜 this.img.filters = [colorFilter]; //设置滤镜颜色 colorFilter.color(0.5, 0.5, 0.5, 1); //设置滤镜亮度 colorFilter.adjustBrightness(-50); //设置滤镜对比度 colorFilter.adjustContrast(8); //设置滤镜饱和...

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

1963. TiledMap 45度地图块渲染顺序问题 [ 74%]

...8-03-21 0 0 分享 微博 QZONE 微信 cheneboy 赞同来自: 可以了   this.tiledMap.createMap("res/tiled/green.json", new Rectangle(0, 0, 1120, 860), new Handler(this, this.completeHandler),null,new Point(1120,860)); 最后那个参数new Point(1120,860),其实是地图的分块渲染的大小...

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

1964. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 74%]

...   log = Log.getLogger("Game");             }               this.addEventListener(Event.ADDED_TO_STAGE, onAddedToStageHandler);           }           private function onAddedToStageHandler(evt:Event):void         {             this.removeEventListener(Event.ADDED_TO...

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

1965. 使用UI组件tree时,添加的数据结构必须是xml吗?添加xml时对于tree的单元格里面的label如何控制例如visible的属性 [ 74%]

...0' ok='ok' isOpen='true'/>"+ "</dir>"+ "</data>"; var xml = this.parseXMLFromString(xmlString); console.log(this.m_tree) this.m_tree.xml =xml; 2017-07-17 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 这里以alpha,官方tree示例为例,你可以参考下 1、在xml里...

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

1966. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 74%]

...d(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { progressBar = new ProgressBar("res/ui/progressBar.png"); progressBar.width = 400; progressBar.x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = Laya.stag...

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

1967. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 74%]

...ff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个Button实例 var btn:Laya.Button = new Laya.Button(this.skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Butto...

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

1968. layacmd 安装不成功 [ 74%]

... have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the electron package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue...

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

1969. 使用Tween.to完成回调异常! [ 73%]

使用Tween.to完成回调异常! Tween.to(this.floatTxt, {y:-30}, 600, Ease.expoOut, Handler.create(this,onFloatComplete)); protected function onFloatComplete(callBack:Function):void {  this.removeSelf(); } 我用这个缓动来做飘字效果,完成回调的时候,把飘字对象在场景...

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

1970. HTTP以POST发送Byte字节流,服务器无法解析 [ 73%]

...e.log("starConnection"); conn=new HttpRequest(); conn.once(Event.PROGRESS, this, onHttpRequestProgress); conn.once(Event.COMPLETE, this, onHttpRequestComplete); conn.once(Event.ERROR, this, onHttpRequestError); var buffBody=new Byte(); buffBody.endian=Byte.BIG_ENDIAN; buffBody.writeInt32(9); buffBod...

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