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

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

761. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 68%]

...离,代码如下: ```typescript //创建场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //创建相机1 var camera1 = scene.addChild(new Laya.Camera(0, 0.1, 100)); //设置相机1清除颜色 camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new L...

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

762. 微信小游戏项目 Mask在 webgl 模式下 安卓 手机有bug [ 68%]

...OTTOM; var icon = new Laya.Image(); icon.skin = "img_icon.png"; Laya.stage.addChild(icon); var mask = new Laya.Image(); mask.skin = "img_mask.png"; mask.width = 344; mask.height = 344; icon.mask = mask;   附件 : --> maskBug.zip 2018-01-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

763. Panel使用文档(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 68%]

...ScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化Image组件 var img:Image = new Image(); //给image添加皮肤 img.skin = "comp/image.png"; //将image添加到panel组件中 panel.addChild(img); } } } ```

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

764. laya.ui.Button_API3.0 [ 68%]

...ickButton,[button]);//设置 button 的点击事件处理器。 Laya.stage.addChild(button);//将此 button 对象添加到显示列表。 } private function onClickButton(button:Button):void { trace("按钮button被点击了!"); } } } example Laya.init(640, 800);//设置游戏画布宽高、渲...

来源: Laya3.0_api 发布时间: 20231115

765. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 68%]

...t(fontName); }   createText(font) { let txt = new Laya.Text(); Laya.stage.addChild(txt); txt.width = 250; txt.wordWrap = true; txt.text = "Do one thing at a time, and do well."; txt.font = font; // 文本的字体名称,以字符串形式表示 txt.leading = 5; // 垂直行间距 txt.pos(Laya.sta...

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

766. 想用camera做一个类似照相机的功能 [ 67%]

...   this.imgSp.cacheAs = "bitmap";             Laya.stage.addChild(this.imgSp);             this.imgSp.graphics.drawTexture(rtex); 2020-06-02 0 0 分享 微博 QZONE 微信 熊猫大侠 赞同来自: 有做过类似功能的同学吗 2020-05-29 0 0 分享 微博 QZONE 微...

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

767. 关于laya生成的canvas定位问题导致内部事件不正确 [ 67%]

...ar img = new Laya.Sprite(); img.loadImage('images/item_5.png'); Laya.stage.addChild(img); img.on(Laya.Event.MOUSE_DOWN, img, onStartDrag); function onStartDrag(){ console.log(this); clickIndex++; msgDiv.html('图片选中了' + clickIndex + '次'); // img.startDrag(); } // Laya.stage.alignH = Laya.S...

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

768. Image刷新问题 [ 67%]

... = new Laya.Image(); itImg.skin = "http://******/get_img.php?"; Laya.stage.addChild(itImg);     如果"http://******/get_img.php?"图片更换了,我这边如何更换我的image展示 2018-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

769. 照着官方文档写的 Dialog 报错? [ 67%]

....prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = function () { this.initLoadD...

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

770. 不规则图形遮罩 显示出来的内容与画的遮罩图形不相同 [ 67%]

...       bg.loadImage("pic/2.jpg",0,0);             Laya.stage.addChild(bg);             maskSP = new Sprite();             maskSP.graphics.drawPath(0, 0,maskSPArr, {fillStyle: "#00ffff"});             bg.mask = maskSP; Laya.stage.addChild(maskSP); 显示出来...

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