大约有 1,151 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0047 秒)
...的json文件 报错 真机调试报错:LayaPlayer不支持的标签</SCRIPT> IDE通过.ui自动生成的ui代码报错 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 本地调试加载本地图片都报错 自定义场景类导出layaMaxUI.ts有前缀导致报错...
来源: Laya_社区 发布时间: 20190416
... // alert(4); } // var __proto=yfqian.prototype; // __class(yfqian,'yfqian_script'); yfqian.getUrl=function(name){ var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i"); if (reg.test(location.href)) return unescape(RegExp.$2.replace(/\+/g, " ")); return ""; } return yfqian; }...
来源: Laya_社区 发布时间: 20190313
...项目的时候自动生成在您的src代码目录 - 未知文件参入 Script正则匹配 出现null 情况,官方未想到null的情况 引起程序报错  export class Main extends Laya.Script { onStart() { let item1 = Laya.Pool.createByClass(TestClass); console.log('item1:', item1.type); Laya.Pool.recoverByClass(item1); let item2 = Laya.Pool.createByClass(TestClass2); console.log('item2:', item2.type); cons...
来源: Laya_社区 发布时间: 20250819
...下配置:[code]{ "name": "electron-quick-start", "version": "1.0.0", "description": "A minimal Electron application", "main": "main.js", "scripts": { "start": "electron .", "dist": "electron-builder --win --x64", "dist mac": "electron-builder --mac" }, "repository": "https://github.com/electron/e...
来源: Laya_社区 发布时间: 20210126
... const { regClass } = Laya; @regClass() export class DayNight extends Laya.Script { declare owner: Laya.Sprite; private lightComp: Laya.DirectionLight2D; private dayTime: number = 0; private dayDuration: number = 24; // 一个完整周期的秒数 private displayText: Laya.Text; // 文本显示当...
来源: Laya3.0_文档 发布时间: 20251010
... 大大大懒猫 • 2018-09-10 10:39 export class ShopTitle extends Laya.Script{ public title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat = new Laya.StandardMaterial(); ...
来源: Laya_社区 发布时间: 20180814
...tElementsByTagName('body').item(0); //创建脚本的dom对象实例 var myScript = document.createElement('script'); myScript.src = jspath; //指定脚本路径 myScript.type = "text/javascript"; //指定脚本类型 myScript.defer = defer;//true; //程序下载完后再解析和执行 theHead.appe...
来源: Laya_社区 发布时间: 20180316
...对matter.js的用法给出详细操作步骤 步骤一: 1、新建ActionScript项目,将官方matter.js Demo三选其一copy到项目中,并设置好文档类。 2、将物理引擎代码matter.js和matter-RenderLaya.js拷贝到h5目录下,以及该示例所需的相关图片资源(引擎...
来源: Laya_社区 发布时间: 20160514
...10 2019-05-10 17:10:38.479438+0800 SwiftLayaNative[98971:4069811] Start js scripts/apploader.js 2019-05-10 17:10:38.479618+0800 SwiftLayaNative[98971:4069811] OpenGL ES version [OpenGL ES 3.0 APPLE-17.0.37] 2019-05-10 17:10:38.479792+0800 SwiftLayaNative[98971:4069811] INFO:gles 支持的最大顶...
来源: Laya_社区 发布时间: 20190510