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

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

181. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...en("./Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onError); }); } /** * 当报错时打印错误 * @param err 报错信息 */ onError(err: string): void { console.log("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): voi...

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

182. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 57%]

...veControl);  //点击提示文字,开始游戏 this.label_start.on(Laya.Event.CLICK, this, this.onTipClick); //this._loveControl.startGame();  //点击重置按钮,重新开始 this.button_reset.on(Laya.Event.CLICK, this, this.onClickReset);  let partPath = "res/aixin_bao.part"; Laya.loader.l...

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

183. 按照视频教程popup为什么没有底层的透明遮盖层啊? [ 57%]

...透明遮盖层的,为什么我的就没有啊? this.btn_login.on(Laya.Event.CLICK,null,()=>{   var aDia:aDialog = new aDialog("登陆");   aDia.popup(true);   Laya.stage.addChild(aDia); })   附件 : --> 2017-12-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

184. laya.display.EffectAnimation [ 57%]

...ses | Index | Frames No Frames EffectAnimationProperties | Methods | Events | Constants Packagelaya.displayClasspublic class EffectAnimationInheritanceEffectAnimation FrameAnimation AnimationBase Sprite Node EventDispatcher Object 动效模板。用于为指定目标对象添加动画效果...

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

185. laya.ui.RadioGroup [ 57%]

... Classes | Index | Frames No Frames RadioGroupProperties | Methods | Events Packagelaya.uiClasspublic class RadioGroupInheritanceRadioGroup UIGroup Box Component Sprite Node EventDispatcher Object RadioGroup 控件定义一组 Radio 控件,这些控件相互排斥; 因此,用户每次...

来源: laya_api 发布时间: 20170929

186. 如何实现3d遮罩效果? [ 56%]

...mport laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import threeDimen.common.CameraMoveScript; public class D3Base_TargetTexture { private var skinMesh:MeshSprite...

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

187. 使用发光滤镜和模糊滤镜一直报错 [ 56%]

...(LearnGlowFilter.ts:15)     at GameUI.onTipClick (GameUI.ts:36)     at EventHandler.__proto.runWith (laya.core.js:1399)     at Label.__proto.event (laya.core.js:1156)     at TouchManager.__proto.sendEvents (laya.core.js:11253)     at TouchManager.__proto.onMouseUp (laya.core.js:11412)   ...

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

188. IDE中自定义组件后,组件XML设置prop,在代码中如何获取(js) [ 55%]

... 请问如何获取鼠标在某个元素内 相对于这个元素的坐标 Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 怎么获取对象的坐标 问题状态 最新活动: 2018-04-24 11:07 浏览: 1144 关注: 2 人

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

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

...s or display objects without image resources), specifies whether the mouse events penetrate this object's collision detection. `true` means the object is penetrable, `false` means it is not penetrable. * When penetrable, the engine will no longer detect this object and will recursively check its chi...

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

190. 射线检测-碰撞器混合 [ 54%]

...te3D.addComponent(Laya.Rigidbody); //添加键盘事件 Laya.stage.on(Laya.Event.KEY_DOWN, this, onKeyDown); this.collider = this.scene.getChildByName("Collider"); this.collider.active = false; //是否开启debug模式 Laya.stage.on(Laya.Event.MOUSE_UP, this, drawCollider); } function onKeyDown(e) ...

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