大约有 842 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0060 秒)
Laya_社区(496) Laya3.0_api(111) Laya3.0_文档(70) Laya_示例(45) Laya2.0_api(42) laya_api(39) Laya2.0_文档(30) Laya2.0_示例(9)
...引用插件模块 ideModuleDir = "/Applications/LayaAirIDE 2.app/Contents/Resources/app/node_modules/"; workSpaceDir = "/test/layademos/fathero"; let gulp = require(ideModuleDir + "gulp"); let browserify = require("/usr/local/lib/node_modules/" + "browserify"); let source = require("/usr/local/lib/...
来源: Laya_社区 发布时间: 20181221
...e.on(Laya.Event.MOUSE_DOWN, () => { Laya.loader.load("resources/916.mp4").then(() => { this.play(); }); }) }同时建议您将“项目设置->缩放模式”更改为fixedwidth,便于手机调试。完整的dem...
来源: Laya_社区 发布时间: 20231007
... 代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager(); this.s_instance.init(); } return this.s_in...
来源: Laya_社区 发布时间: 20171124
...ckage { import laya.display.Sprite; import laya.display.Stage; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Sprite_SwitchTexture { private var texture1:String = "../../../../res/apes/monkey2.png"; private var texture2:Strin...
来源: Laya_示例 发布时间: 20251209
... ```javascript ThreadMode=2; ``` **TIPS: ios版本:在工程目录下的resource\config.ini android版本:在工程目录下的assets\config.ini
来源: Laya2.0_文档 发布时间: 20210715
...import laya.net.Loader; import laya.ui.TextArea; import laya.resource.Texture; import laya.maths.Point; import laya.utils.Tween; import laya.d3.resource.models.PrimitiveMesh; import laya.debug.DebugPanel; import laya.debug.DebugTool; import lay...
来源: Laya_社区 发布时间: 20170921
...t;code>Texture</code> 是一个纹理处理类。 */ //class laya.resource.Texture extends laya.events.EventDispatcher var Texture=(function(_super){ function Texture(bitmap,uv){ /**图片或者canvas 。*/ //this.bitmap=null; /**UV信息。*/ //this.uv=null; /**沿 X 轴偏移量。*/ this...
来源: Laya_社区 发布时间: 20180504
...ge.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/progress.png", "resource/ui/progress$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { progressBar = new ProgressBar("resource/ui/progress.png");//创建...
来源: Laya3.0_api 发布时间: 20231115
...ge.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hslider.png", "resource/ui/hslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { hSlider = new HSlider();//创建一个 HSlider 类的实例对象 hS...
来源: Laya3.0_api 发布时间: 20231115
...ge.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vslider.png", "resource/ui/vslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { vSlider = new VSlider();//创建一个 VSlider 类的实例对象 vS...
来源: Laya3.0_api 发布时间: 20231115