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

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

591. [BUG]刚体约束问题,移动后约束混乱! [ 92%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果  * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本...

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

592. Image不能清空图片吗? [ 92%]

Image不能清空图片吗? if(!this.lastMakeMc){ //类型小图片 this.lastMakeMc = new Image(); this.collectUIMC.addChild(this.lastMakeMc); this.lastMakeMc.pos(123,68); this.lastMakeMc.size(32,32); }else{ this.lastMakeMc.skin = "face/type"+type+".png"; } if(type == -999){ this.lastMakeMc.dispo...

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

593. this.bitmap.activeResource is not a function. [ 92%]

this.bitmap.activeResource is not a function. 排行榜主域绘制开放数据域sharedCanvas时候报错。代码如下:var rankTexture = new Laya.Texture(Laya.Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小程序使用,非常费 let sprite = new Laya.Sprite(); spri...

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

594. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 92%]

...) { //初始化舞台 Laya.init(1334,750,Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/role.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //添加到舞...

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

595. EventDispatcher.hasListener问题 [ 92%]

...Listener问题 var e:EventDispatcher = new EventDispatcher(); e.on("test", this, this.test1); e.on("test", this, this.test2); e.off("test", this, this.test1); e.off("test", this, this.test2); console.log(e.hasListener("test")); ---------------------------------------- 输出:true   2018-04-23 添...

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

596. UI加载完成后无法获取控件的大小——超详细版问题 [ 92%]

...ay.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHANGE, this, this.fitDOMElements_scroll); } private fitDOMElements(a, b, c, d, e, f): void { co...

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

597. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 92%]

...in_lock:Laya.Image; private skin_inUse:Laya.Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.initBuild(); this.skin_btn_use.on(Laya.Event.CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); }   //btn 有宽高 2018-08-28 添加评论 免费帖 ...

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

598. 为啥我在批量removeself 会报错卡死 [ 92%]

...量removeself 会报错卡死 override public function removeSelf():Node { this.scaleX = 1; this.scaleY = 1; this.alpha = 1; this.pos(0,0); this.filters = []; if(selectImg != null) { selectImg.removeSelf(); } this.mouseEnabled = true; if(this.visible == false) { this.visible = true; } super.removeSe...

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

599. 材质的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 92%]

...ChangeMaterialDemo/Conventional/scene.ls")); //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere"); //获取球型精灵自带的BlinnPhong材质 billinMaterial = this.sphere.meshRenderer.material; ``` > 拿到材质之后,我们可以修改材质或者将这个材质给其他...

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

600. 有没有js版本Tween clear相关的demo?? [ 92%]

...)操作后不管用,我的写法如下leftToRight1(){ Laya.Tween.clear(this.leftToRightTween1); this.leftToRightTween1 = Laya.Tween.to(this.spFetch, { rotation: -170 }, 3000, null, Laya.Handler.create(this, this.leftToRight2)) } leftToRight2(){ Laya.Tween.clear(this.leftToRightTween2); this.left...

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