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

大约有 683 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0056 秒)

631. 求助关于TiledMap的版本问题 [ 51%]

...实例,视口区域 var viewRect:Rectangle = new Rectangle(0, 0, Browser.width, Browser.height); //创建TiledMap地图 tMap.createMap("res/TiledMap/orthogonal-outside.json",viewRect, Handler.create(this, this.onCreateMapLoaded)); } private function onCreateMapLoaded():void { trace("loaded..."); }...

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

632. 动画编辑修改任意一组其中一帧导致所有帧都被默认相同 [ 50%]

.....真坑呀。   理论上每拖拽上传的时候 每一帧的 x=0,y=0, width=(图片上传后的宽),height(图片上传后的高)。   2017-12-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 wudi199553 赞...

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

633. 使用官方文档中qrcode生成二维码的代码,打包APP后无效 [ 50%]

....createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div, { width: 100, height: 100 }); var url: string = this.URL; this.qrcode.makeCode(url); Laya.stage.once("click", this, this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandl...

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

634. TiledMap地图 · LayaAir3.0文档 · LAYABOX [ 50%]

... var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.designWidth, Laya.stage.designHeight); //创建TiledMap地图 this.tMap.createMap("resources/TiledMap/orthogonal.json", viewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void {...

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

635. 怎么获取手机相册内容 [ 50%]

...put"); //设置file的样式 file.style="filter:alpha(opacity=0);opacity:0;width: 150px;height:60px;"; file.type ="file";//设置类型是file类型。 file.accept="image/png";//设置文件的格式png; file.style.position ="absolute"; file.style.zIndex = 999; Browser.document.body.appendChild...

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

636. 项目设置详解 · LayaAir3.0文档 · LAYABOX [ 50%]

... 影响产品画面宽高的三个设置,分别是设计宽高(Design Width、Design Height),缩放适配模式(Scale Mode)。 设计宽高,就是我们在IDE里的设置并看到的宽高, 这个宽高会影响在IDE里的UI场景背景大小,以及IDE的预览运行模式下,也是...

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

637. 只要引入protobuf就会导致连接网络失败 [ 49%]

...lic static void loadImageViewLodingSize(Context mContext, String path, int width, int height, ImageView mImageView, int lodingImage, int errorImageView) { Glide.with(mContext).load(path).override(width, height).placeholder(lodingImage).error(errorImageView).into(mImageView); } 150*****705 • 2018-0...

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

638. Dragonbones龙骨动画 播放不同动作出现闪烁 混乱 [ 49%]

...this.templet.loadAni(this.aniUrl); this.maskBox.graphics.drawRect(0,0,this.width,this.height,'#ffffff'); this.mask = this.maskBox; this.maskBox.alpha=0; // this.show(); } private parseComplete():void { //创建模式1,可以启用换装 this.skeleton =this.templet.buildArmature(1); this.skeleto...

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

639. l微信开放域无法显示,但是可以正常传数据 [ 49%]

...a.isWXPosMsg = true; //根据IDE设置初始化引擎 Laya.init(GameConfig.width, GameConfig.height,false); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; // 关于透传接口...

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

640. 物理Bodies绑定Laya.Sprite [ 49%]

...e.SCREEN_HORIZONTAL; // 始终以横屏展示 Laya.stage.scaleMode = "fixedwidth"; // 宽度不变 this.engine; var world; this.engine = Matter.Engine.create({ enableSleeping: true // 开启睡眠 }); world = this.engine.world; Matter.Engine.run(this.engine); // Engine 启动 var render = LayaRender...

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