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

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

271. Morn下List组件如何给每一条列表添加Click事件,是需要for吗? [ 53%]

...flash.events.MouseEvent; import game.ui.other.ListViewUI; import morn.core.components.Box; import morn.core.handlers.Handler; public class ListView extends ListViewUI { public function ListView() { super(); var arr:Array=[]; for(var i:int=0;i<95;i++) { arr.push({icon:i,label:"Index"+i}); } boxLis...

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

272. 灯光-聚光 [ 53%]

...mera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //聚光灯 var spotLight = scene.addChild(new Laya.SpotLight()); spotLight.color = new Laya.Vector3(1, 1, 0); spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); spotLight.direction =...

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

273. 如何在代码中new Poly [ 53%]

...设置它的  renderType   这样也不行 : this.imgExpedition = new component.HomeScaleFilterImg(3, 655, "home/imgExpedition.png", 0); this._sprHome.addChildAt(this.imgExpedition, 0); this.homeScaleFilterImgList.push(this.imgExpedition);  Laya.timer.once(2000, this, () => {  let dd: Laya....

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

274. Sprite3D-Sprite3D变换 [ 53%]

...;package sprite3dModule { import laya.ani.AnimationTemplet; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.ma...

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

275. laya.ui.UIComponent [ 52%]

...DocumentationAll Packages | All Classes | Index | Frames No Frames UIComponentProperties | Methods | Events Packagelaya.uiClasspublic class UIComponentInheritanceUIComponent Sprite Node EventDispatcher ObjectSubclasses Box, Button, Clip, ColorPicker, ComboBox, Image, Label, ProgressBar, Scr...

来源: Laya2.0_api 发布时间: 20190513

276. 场景节点如何获取,类似cocos的cc.find [ 52%]

...用了。   如果要调用其它script的方法,可以使用self.xxx._components[0].someFunc(); 我这么用好使,但是可能不规范,最好还是问问官方。 2019-03-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 181***...

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

277. [LayaAir3]Script类型组件在销毁时没有在setupScript时添加的节点事件监听 [ 51%]

...法。即每次setupScript都注册一次相关节点回调。   希望在Component.protype._destroy方法中,在回收Script组件之前,增加对当前owner的监听移除,即增加this.owner.offAllCaller(this); 附件 : --> 2025-07-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

278. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 51%]

...Laya.Sprite的mouseThrogh的注释,如下所示: /** * @en For non-UI component display object nodes (container objects or display objects without image resources), specifies whether the mouse events penetrate this object's collision detection. `true` means the object is penetrable, `false` mean...

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

279. [LayaAir3]LayaAir3.3使用Fairygui开发UI,滤镜效果对不上 [ 50%]

...; 应该改成this._closeButton = fgui.UIPackage.createObject("Package1", "Component1"); 2025-09-08 0 2 分享 微博 QZONE 微信 LayaAir大为 赞同来自: 格局豬 - 趙唐豬豬 您好,我们已经复现这个问题,感谢您的反馈 2025-09-01 1 3 分享 微博 QZONE 微信 为什么被...

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

280. 高级应用-实时阴影 [ 49%]

...rdMaterial; } } new RealTimeShadow;package advancedModule { import laya.d3.component.Animator; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.SkinnedMeshRender; import laya.d3.core.SkinnedMeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.light.Directi...

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