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

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

411. LIST renderHandler的ITEM高度自定义后,设置content变更其内部容器大小不生效 [ 94%]

...大小不生效 ViewActivityLimitedTask.prototype.initComp = function() { this.list_view.vScrollBarSkin = ""; this.list_view.scrollBar.elasticBackTime = ListConst.elasticBackTime; this.list_view.scrollBar.elasticDistance = ListConst.elasticDistance; this.list_view.renderHandler = new Laya.Handler(th...

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

412. 关于3d的碰撞检测 [ 94%]

...检测的结果一直是-1 相关代码:const field: Laya.MeshSprite3D = this.scene.getChildByName("stadium").getChildByName("field") as Laya.MeshSprite3D;//拿到地板 const sprite3d1MeshCollider: Laya.MeshCollider = field.addComponent(Laya.MeshCollider) as Laya.MeshCollider; sprite3d1MeshCollider...

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

413. this.bitmap.activeResource is not a function TypeError: this.bitmap.activeResource is not a function [ 94%]

this.bitmap.activeResource is not a function TypeError: this.bitmap.activeResource is not a function if (bitmap&&bitmap._addReference){ bitmap._addReference(); } 这个代码过滤已经加了,但是会报下面这个错 this.bitmap.activeResource is not a function TypeError: this.bitmap....

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

414. 加载-错误处理和进度 [ 94%]

...fighter.png", "res/legend/map.jpg"]; Laya.loader.load(urls, Handler.create(this, this.onAssetLoaded), Handler.create(this, this.onLoading, null, false), Loader.TEXT); // 侦听加载失败 Laya.loader.on(Event.ERROR, this, this.onError); } onAssetLoaded(texture) { // 使用texture console.log("加...

来源: Laya2.0_示例 发布时间: 20241002

415. 鼠标事件out ,move 发生再up事件之后 [ 94%]

...p事件之后 一个页面,绑定事件  initEvent() {         this.bubbleView.on(Laya.Event.MOUSE_MOVE, thisthis.mouseMoveCallback);         this.bubbleView.on(Laya.Event.MOUSE_UP, thisthis.mouseUpCallback);         this.bubbleView.on(Laya.Event.MOUSE_OUT, this,...

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

416. Geolocation.watchPosition [ 94%]

Geolocation.watchPosition Geolocation.enableHighAccuracy = true; this.gps_handler = Handler.create(this, this.update_gps); this.failed_handler = Handler.create(this, this.gps_failed); this.watch_id = Geolocation.watchPosition(this.gps_handler, this.failed_handler); this.gps_handler 只会回调一...

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

417. 关于this [ 94%]

关于this Laya的有许多方法,关于this(执行与域),我写的项目可能和大多数人不一样,我的域有很多,找不到有些this指的什么,Laya有没有什么方法可以找到this的地址? 2018-02-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

418. tween [ 94%]

...行 这是暂停函数: __proto.pause=function(){ Laya.scaleTimer.clear(this,this._beginLoop); Laya.scaleTimer.clear(this,this._doEase); 以下是Tween类里面的 create 函数的代码段 BUG就出在 Laya.scaleTimer.once(delay,this,this.firstStart,[target,props,isTo]); if (runNow){ if (delay &l...

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

419. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 94%]

...模拟器正常。真机如下:   以下是代码: protected onEnter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComp...

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

420. 为什么自定义shader大图正常,小图就被缩小了 [ 94%]

...使用自定义着色器时,需要设置该显示对象类的渲染模式this._renderType |= Laya.RenderSprite.CUSTOM;并且需要重写该类的渲染处理函数 */ var myShaderSprite = (function (_super) { this.iNum = 0; function myShaderSprite() { myShaderSprite.super(this); } Laya.class(mySha...

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