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

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

1571. tiledMap显示层级问题 [ 79%]

...界点的时候读取需要加载的区块名称,通过Laya.loader.load(this.m_mapName, Laya.Handler.create(this, this.onLoadCompleteHandler), null, Laya.Loader.ATLAS);加载资源,成功后调用this.m_tileMap.createMap(OOXX);来显示。不知道这样调用是否正确? 因为看到之前...

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

1572. 在写屏蔽词库的程序时,字符串中没有屏蔽字库中的词,会出现返回0的情况 [ 79%]

...***233 • 2017-08-28 11:51 private get IndexOfShieldName(): Boolean { if (this.shieldArray.indexOf(this.roleName) != -1) { var index:number=this.shieldArray.indexOf(this.roleName); console.log("找到了,位置在"+index); return true; } console.log("没找到"); return false } ...

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

1573. 物理引擎bug [ 79%]

...接 提交 2 个回复 叔年心~厌世 赞同来自: for(var i=0;i<this.boneCtn.numChildren;i++){ let b=this.boneCtn.getChildAt(i); b.destroy(); b.removeSelf(); }这样写也不行 2019-09-06 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个问题没有上传demo 无法调试和...

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

1574. CheckBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 79%]

...f"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load([this.skin1,this.skin2],Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个CheckBox实例cb1 var cb1:Laya.CheckBox = new Laya.CheckBox(this.skin1); //添加到舞台上显示 Laya.stage.addChild...

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

1575. 材质-BlinnPhong材质加载 [ 79%]

...发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scen...

来源: Laya_示例 发布时间: 20251219

1576. 3D中的Animator如何从指定的某一帧开始播放动画 [ 79%]

...Clip(totalAnimationClip,"runShoot",startFrame); animator.on(Event.STOPPED, this, this.removeClip); animator.on(Event.COMPLETE, this, this.removeClip); animator.play("runShoot"); 2018-07-26 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个要在unity 里面进行切片,从那一帧开...

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

1577. 监听选择list项会一直触发 [ 79%]

监听选择list项会一直触发 v1.7.5this.avatarList.selectHandler = Handler.create(this, this.onSelect, null, false); onSelect(index: number) { console.log("一直触发"); }     2017-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

1578. [LayaAirIDE3]3.0.10 父容器做了一次scale缩放操作,子节点的label文字变模糊加粗 [ 79%]

.../ 加了这段缩放代码body容器下的label组件文字就变得模糊 this.body.scale(0.4,0.4); Laya.Tween.to(this.body, { scaleX: 1, scaleY: 1 },300, Laya.Ease.backOut, null); 文字效果差异如下,文字旋转后白色(#ffffff)字体明显加粗,其它颜色(#92420D)就正常粗细,...

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

1579. Button自定义属性 [ 79%]

...11:09 比如 for(let i:number = 0; i < len; ++i){ let btn:Laya.Button = this.main.getchildbuy(i); btn.on(Laya.Event.CLICK,this.this.clickHandle); btn.xx = "xxx"; } private clickHandle(e:Laya.Event):void{ } 类似于我想给btn绑定“xxx”数据,用来给后面点击获取

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

1580. SphereCollider和MeshCollider碰撞检测的bug [ 79%]

...码实现如下: var meshCollider=other; if (Collision.sphereContainsBox(this.boundSphere,meshCollider._boundBox)!==/*laya.d3.math.ContainmentType.Disjoint*/0){ var positions=meshCollider.mesh._positions; for (var i=0,n=positions.length;i < n;i++){ if (Collision.sphereContainsPoint(this.boundSp...

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