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

大约有 1,210 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0050 秒)

551. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 67%]

...aya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () ...

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

552. 引用的类库问题 [ 67%]

引用的类库问题 var ViewStack=(function(_super){ function ViewStack(){ this._items=null; this._selectedIndex=0; ViewStack.__super.call(this); this._setIndexHandler=Handler.create(this,this.setIndex,null,false); } __class(ViewStack,'laya.ui.ViewStack',_super); 1. ViewStack.__super.call(this); ...

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

553. 如何给 list 子元素里面的不同子元素添加点击事件 [ 67%]

...用说了 方法一: function renderHandler(item:box,index:int):void { var button:Button = item.getChildByName("buton") as Button;(名字是你在ide里自己设定的) button.on(事件注册) }   方法二: list组件.itemRender  = UI页面 function renderHandler(item:UI页面,index:int):void...

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

554. 微信浏览器,input输入完成后,游戏不能还原 [ 67%]

...CALE_FIXED_HEIGHT; Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL;  var scene = new Laya.Sprite(); scene.width = Laya.stage.width; scene.height = Laya.stage.height; scene.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#3e3534"); Laya.stage.addChild(scene);  var inputText = new...

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

555. 2.0 efc动画模板导出的类型竟然是View [ 67%]

...建1个动画模板添加到UI页面,按照官方文档,添加uicode var EffectAnimation=laya.display.EffectAnimation;附件是报的错误图中scaleEffAnimUi是创建的动画模板名字 附件 : --> 2019-02-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

556. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 67%]

...本 createTween(); function createTween(){ //"LayaBox"字符串总宽度 var w = 800; //文本创建的起始x位置(>>在此使用右移运算符,相当于/2 用>>效率更高) var offsetX = Laya.stage.width - w >> 1; //显示的字符串 var demoString = "LayaBox"; var letterText; for(var i = 0,...

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

557. 请教一个图片处理成黑白的问题 [ 67%]

...删除 2017-06-15 0 0 分享 微博 QZONE 微信 189*****192 赞同来自: var grayscaleMat = [0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0, 0, 0, 1, 0]; var grayscaleFilter = new ColorFilter(grayscaleMat); var grayApe = new Sprite(); grayApe.loadImage(...

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

558. 关于绑定点击事件无效的问题! [ 67%]

...nn.on()绑定的点击事件并没有生效, btnn是UI编辑里面的var的一个box的名字 ,,求解答!!!!可以正常打印出(msg.btnn) 附件 : --> 2017-03-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

559. 关于材质问题 [ 67%]

关于材质问题 mesh.once(Laya.Event.LOADED, null, function () { var material = meshSprite.meshRender.sharedMaterials[0]; material.albedo = new Laya.Vector4(0.0,0.0,0.0,0.0); material.renderMode = Laya.BaseMaterial.RENDERMODE_OPAQUEDOUBLEFACE; material.reflectTexture = textureCube; }); 为什么...

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

560. 关于mouseThrough设计原理问题? [ 67%]

...hrough = false;设置是没有效果的,这样设计是不是有问题?var a:Sprite = new Sprite(); a.graphics.drawRect(0,0,200, 200, "#00ff00"); a.size(200, 200); a.pos(0, 0); a.on(Event.CLICK, null, function(e:Event):void{ trace("click a"); }) Laya.stage.addChild(a); var b:Sprite = new Sprite(...

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