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

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

51. laya.events.EventDispatcher [ 47%]

...nsform3D, BaseRender, Component3D, GeometryFilter, Gyroscope, HttpRequest, Loader, LoaderManager, Node, Shake, Socket, Sound, SoundChannel, Texture, TimeLine, Transform3D, TransformUV EventDispatcher 类是可调度事件的所有类的基类。 Public Methods  MethodDefined By  event(type:String...

来源: laya_api 发布时间: 20170929

52. laya.events.EventDispatcher [ 47%]

...ss EventDispatcherInheritanceEventDispatcher ObjectSubclasses HttpRequest, Loader, LoaderManager, Node, Socket, Sound, SoundChannel, Texture, TimeLine EventDispatcher 类是可调度事件的所有类的基类。 Public Methods  MethodDefined By  event(type:String, data:* = null):Boolean 派发...

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

53. laya.events.EventDispatcher_API3.0 [ 46%]

...y EventDispatcher Resource Node Transform3D SoundChannel Sound HttpRequest Loader AnimatorState AnimatorState2D Physics AnimationPlayer AxiGamepad ButtonGamepad WebXRInput WebXRSessionManager Accelerator Shake Gyroscope Socket TimeLine Index Methods event hasListener off offAll offAllCaller on once ...

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

54. videoNode在安卓上不能播放 [ 44%]

...   Laya.stage.on(Laya.Event.MOUSE_DOWN, () => {             Laya.loader.load("resources/916.mp4").then(() => {                 this.play();             });         })     }同时建议您将“项目设置->缩放模式”更改为fixedwidth,便于手机调试...

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

55. 1.7.19.1 beta 背景音乐在舞台失焦和静音状态下可能导致的无法播放的异常问题! [ 43%]

...undMuted)return null; }; var tSound; if (!Browser.onMiniGame){ tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ tSound=new soundClass(); tSound.load(url); Loader.cacheRes(url,tSound); }; var channel; channel=tSound.play(startTime,loops); if (!chann...

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

56. Laya.URL.basePath加载不到网络资源 [ 42%]

...网络资源 var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "images/background.png", type : Laya.Loader.IMAGE}, ];   Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));   Laya.URL.ba...

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

57. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 32%]

...引擎 Laya.init(500,500); var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对...

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

58. [LayaAirIDE3]xcode切入切出声音不播放 [ 30%]

... string): void {         Laya.SoundManager.stopAll();         Laya.loader.clearRes(currentBgmUrl);          Laya.loader.load([{ url: currentBgmUrl, type: Laya.Loader.SOUND }],             Laya.Handler.create(this, () => {                 console.log("----playMusic111 ...

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

59. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 29%]

... //初始化引擎 Laya.init(100,100); var skins:any = ["res/a.png"]; Laya.loader.load(skins,Laya.Handler.create(this,this.onUIAssetsLoaded)); } private onUIAssetsLoaded():void{ var btn:Laya.Button = new Laya.Button("res/a.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮...

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