大约有 221 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0083 秒)
Laya3.0_api(69) Laya3.0_文档(46) Laya2.0_api(43) laya_api(33) Laya_社区(25) Laya2.0_文档(3) Laya2.0_示例(1) Laya_示例(1)
...ult@MergeProfile... after 3 ms > hvigor Finished :entry:default@GenerateLoaderJson... after 17 ms > hvigor Finished :entry:default@ConfigureCmake... after 28 ms > hvigor Finished :libSysCapabilities:default@BuildNativeWithNinja... after 2 ms > hvigor Finished :entry:default@MakePackInfo....
来源: Laya_社区 发布时间: 20250106
...ouseX mouseY muted numChildren parent paused pivotX pivotY playbackRate preload readyState rotation scaleX scaleY scene scrollRect seekable seeking skewX skewY stage staticCache texture timer transform url videoHeight videoWidth viewport visible volume width x y zOrder Methods _initialize _processAc...
来源: Laya3.0_api 发布时间: 20231102
...画的播放实质就是定时切换Graphics对象。 使用set source、loadImages(...)、loadAtlas(...)、loadAnimation(...)方法可以创建动画模版。使用play(...)可以播放指定动画。 example 以下示例代码,创建了一个 Text 实例。 package { import laya.display.Animatio...
来源: Laya3.0_api 发布时间: 20231115
... get_width globalToLocal hasHideFlag hasListener hitTestPoint isAncestorOf load loadImage localToGlobal off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once parentRepaint paused pivot play playbackRate pos reCache removeChild removeChildAt removeChildByName removeC...
来源: Laya3.0_api 发布时间: 20231115
...Jump():Boolean当前小游戏环境是否支持游戏跳转功能AdvImage loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改动:多次调用,只会显示一个图片(1.0会显示多个图片),x,y...
来源: Laya2.0_api 发布时间: 20190513
..., offset || Point.EMPTY, color)); else return null; } 代码示例: Laya.loader.load("resources/layaAir.png").then((res: Laya.Texture) => { let sp = new Laya.Sprite(); // 绘制填充纹理 sp.graphics.fillTexture(res, 0, 0, 500, 500, "repeat"); this.owner.addChild(sp); }); 运行效果: (...
来源: Laya3.0_文档 发布时间: 20251010
...ouseX mouseY muted numChildren parent paused pivotX pivotY playbackRate preload readyState rotation scaleX scaleY scene scrollRect seekable seeking skewX skewY source stage staticCache texture timer transform url videoHeight videoTexture videoWidth viewport visible volume width x y zOrder Methods _i...
来源: Laya3.0_api 发布时间: 20231115
...e.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获取这个粒子特效的所有粒子系统,用于后面整体播放 for (var i = 0, len = this._particle.numChildren; i < len; i++) { ...
来源: Laya3.0_文档 发布时间: 20251010
...e.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获取这个粒子特效的所有粒子系统,用于后面整体播放 for (var i = 0, len = this._particle.numChildren; i < len; i++) { ...
来源: Laya3.0_文档 发布时间: 20250104
...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_Instance();//创建一个 Dialog_Instance 类的实例对象 dialog...
来源: Laya3.0_api 发布时间: 20231115