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

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

211. 关于Sprite回收 [ 68%]

关于Sprite回收 // 移除item         for(var i = 0; i < this.numChildren; i++) {             console.log(this.numChildren);             var item = this.getChildAt(i);             if(item instanceof Item) {                 item.removeSelf();               ...

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

212. cavans上触发不了input的点击事件 [ 68%]

cavans上触发不了input的点击事件 在舞台上添加一个sprite,给sprite添加一个点击事件,this.hitimg.on(Laya.Event.CLICK,this,this.onStart); onStart: _proto.onStart = function(){ console.log(111111122222); $("#fileInput").trigger('click'); } 可以打印数字,但是触发...

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

213. 我在一个sprite上绘制了两个矩形,然后添加到舞台,中间会有个缝隙,请问怎么去掉? [ 67%]

我在一个sprite上绘制了两个矩形,然后添加到舞台,中间会有个缝隙,请问怎么去掉? 我在一个sprite上绘制了两个矩形,然后添加到舞台,中间会有个缝隙,请问怎么去掉?   附件 : --> 2017-09-20 添加评论 免费帖 --> 分享 微博 Q...

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

214. 层级面板 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...层级面板的通用操作 2.1 创建节点 可以创建的3D节点有: Sprite3D(这是一个空节点); 基础3D节点(Cube、Sphere、Cylinder、Capsule、Cone、Plane); 特效(Particle3D、PixelLine、Trail); 灯光(DirectionLight、PointLight、SpotLight、AreaLight); ...

来源: Laya3.0_文档 发布时间: 20251011

215. 求问sprite放大后,graphics绘制的图像位置偏移 [ 67%]

求问sprite放大后,graphics绘制的图像位置偏移 let sprite: Sprite = new Sprite(); let texture: Laya.Texture = Laya.loader.getRes(this.skin_img1); sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); sprite.size(texture.width, texture.height); let x: number = 300; ...

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

216. 遍历子对象的时候多出两个null [ 67%]

...统计面板的显存内存就会显示成负数 关于遍历产生的sprite的点击事件,急,大神帮看哈 怎么获取对象的坐标 两个问题 有元件支援视频流渲染吗? Image元件读不了资料流 使用getChildByName()无法得到子节点对象 怎么讲layaAir里...

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

217. 怎样让父类的大小不变化? [ 67%]

怎样让父类的大小不变化? 创建父节点 sprite 。 然后再向sprite中添加 两个子节点 spr1,spr2。 其中spr2的位置随着时间变化,发现父节点sprite 的大小也会不断变化。问:怎样让父节点的size 保持不变? 2018-06-29 添加评论 免费帖 --...

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

218. [LayaAir3]sprite.drawToTexture( ) 无法绘制容器内容 [ 67%]

[LayaAir3]sprite.drawToTexture( ) 无法绘制容器内容  drawToTexture() 方法不能按预期工作,只能绘制背景,无法绘制出子节点内容,API文档对参数也没有详细注释,各种尝试都无解。DEMO 代码已上传,麻烦帮忙看看,感谢。 附件 : --> bug-d...

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

219. Button 设置皮肤 [ 67%]

...回复问题请先登录 发起人 哎呀嘛N号 相关问题 如何设置Sprite的宽高点击区域? 使用钢体设置防穿后仍有几率会穿透 anchor锚点设置不生效 关于同为object层,层级设置无效的问题 将list里的scrollBar设置mouseWheelEnable=false后过一段...

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

220. Sprite optimizeScrollRect = true 似乎有问题 [ 66%]

Sprite optimizeScrollRect = true 似乎有问题 this.initMask = function () { this.mask = new Sprite(); this.mask.width = this.width; this.mask.height = this.height; this.mask.scrollRect = new Rectangle(); this.mask.scrollRect.setTo(0, 0, this.width, this.height); this.mask.optimizeScrollRect = tr...

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