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

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

1111. 苹果上架有问题啊 , !!!!!! [ 86%]

....5.2 and section 3.3.2 of the Apple Developer Program License Agreement. This code, combined with a remote resource, can facilitate significant changes to your app’s behavior compared to when it was initially reviewed for the App Store. While you may not be using this functionality currently, it...

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

1112. 请问一下怎样动态加载prefab [ 86%]

...  1.    let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("dropBox", this.dropBox.create, this.dropBox); 这个会在create的时候报错 2. prefab:Prefab = Laya.Load.getRes("prefab/xxx"); 这个获取prefab直接就是个空   请问一下 这个到底是怎么写才能动态加载一个pref...

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

1113. 关于tiledmap获取格子自定义属性 [ 86%]

...laya.tiledmap.js 1. addTileProperties方法前后加入         2. this.addTileProperties(tTileSet.tileproperties); 后加入 3.使用时   附件 : --> 2017-09-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个...

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

1114. 一个技术文档的问题 [ 86%]

...取到添加附加脚本的组件实例 **/ public set owner(value: any) { this.monkeyBox = value; //自定义的脚本会有时序问题,所以在此添加一个延时 this.monkeyBox.frameOnce(2, this, this.onLoaded); } 我想问的是this.monkeyBox = value;这句话,monkeyBox的类型是Sprite...

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

1115. 加载时间轴动画报错 [ 86%]

加载时间轴动画报错 代码如下: this.ani = new Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe));   function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); }   运行时报 TypeError:Can...

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

1116. 请问有人遇到oppo小游戏字体显示异常 [ 86%]

...改方案: 将 CharRender_Canvas 类的  set canvasWidth 方法的 ``` this.ctx.setTransform(1, 0, 0, 1, 0, 0); this.ctx.scale(this.lastScaleX, this.lastScaleY);   ``` 修改为 ``` this.ctx.setTransform(this.lastScaleX, 0, 0, this.lastScaleY, 0, 0); ```   2020-09-17 1 2 分享 微博 QZONE 微...

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

1117. Laya.Tween怎么运用到3D对象上? [ 86%]

... x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animationDelay);   无法直接设置原因...

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

1118. 修复开放数据域组件WXOpenDataViewer鼠标不能拖动的问题 [ 86%]

...地方,转换成全局坐标             var p: Laya.Point = this.localToGlobal(new Laya.Point());             mat.translate(p.x, p.y);             var stage: Laya.Stage = Laya.stage;              mat.scale(stage._canvasTransform.getScaleX() * this....

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

1119. 获取的ui页面里下on事件无法触发 [ 86%]

... 类代码如下: var GameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出:Butt...

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

1120. 游戏铺满固定大小容器,火狐和谷歌正常,edge会有滚动条? [ 86%]

...享 微博 QZONE 微信 156*****215 赞同来自: Laya.timer.frameLoop(1,this,()=>{                if(this.lastClientWidth!=Laya.Browser.clientWidth){                     if(Laya.Browser.clientWidth>Laya.Browser.clientHeight){                  ...

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