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

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

521. 请问UI之间的场景切换要怎么写 [ 67%]

请问UI之间的场景切换要怎么写 var sg_sign = (function(_super){ function sg_sign(){ sg_sign.super(this); this.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundMan...

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

522. 请问老师为什么我按照官网的实例播放音频没反应呢? [ 67%]

...老师为什么我按照官网的实例播放音频没反应呢? (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Event = Laya.Event; var SoundManager = Laya.SoundManager; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; //声...

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

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

...Error: Loader is not defined 搞不懂引擎原生的也会报这个错? onEnable() { //戏控制脚本引用,避免每次获取组件带来不必要的性能开销 thi   s._loveControl = this.getComponent(LoveControl);  //点击提示文字,开始游戏 this.label_start.on(Laya.Event.CLICK,...

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

524. [LayaAirIDE3]【插件开发】配置方式可以生成非常复杂的界面的部分疑惑 [ 66%]

...a; panel.allowUndo = true; panel.inspect(data, "SplitAtlasSetting"); this.contentPane = panel; this.title = "图集分割工具"; } protected onShown() { (this.contentPane as IEditor.InspectorPanel).resetDefault(); this.setSize(500, 250); this.contentPane.on("click_start_gen", this.startGen, this); ...

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

525. 3D中摄像机绕物体旋转该如何实现? [ 66%]

...该如何实现? 2017-07-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 ebaww 赞同来自: liwenhua 简单的方法,物体位置创建一个名为cameraroot 的sprit3D,给它添加一个cameraMoveScript...

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

526. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 66%]

...is automatically generated by LayaAirIDE, please do not make any modifications. */ import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; export module ui.test { export class TestSceneUI extends Laya.Scene {         public sco...

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

527. 类似抠图、挖空效果的实现 [ 66%]

...空效果的实现 2016-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: a4362928 package  {          import laya.display.Sprite;     import laya.display.Stage;     import...

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

528. laya.components.AnimationClip2D_API3.0 [ 66%]

...ch Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/components/AnimationClip2D" AnimationClip2D Class AnimationClip2D Hierarchy Resource AnimationClip2D Index Constructors constructor Prop...

来源: Laya3.0_api 发布时间: 20231115

529. 音乐与音效的播放与控制(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 66%]

..._sound.play(0); //失去舞台焦点(切出游戏)的处理 Laya.stage.on(Laya.Event.BLUR, this, () => { _sound.stop(); }); //获得舞台焦点(切回游戏)的处理 Laya.stage.on(Laya.Event.FOCUS, this, () => { _sound.play(0); }); …… ``` ### 六、音乐与音效播放的完整示例 ...

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

530. 点击区域问题 [ 66%]

点击区域问题 var con1:laya.display.Sprite = new laya.display.Sprite; Laya.stage.addChild(con1); con1.x = con1.y = 100; var con:laya.display.Sprite = new laya.display.Sprite; con1.addChild(con); // con.scrollRect = new laya.maths.Rectangle(200,200,500,500); con.x = con.y = -200; var sp:laya.di...

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