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

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

1. XMLHttpRequest cannot load [ 100%]

...json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.__proto.send @ firstGame.max.js:9742 firstGame.max.js:9137 [warn]Retry to load: F:/Laya/Project/firstGame/bin/h5/res/atlas/comp.json firstGame.max.js:9742 XMLHt...

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

2. 列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 88%]

...节点被添加到舞台后 onEnable(): void { // 给List对象赋值 var data: Array<any> = []; for (var m: number = 0; m < 20; m++) { data.push({ m_label: "No." + m }); } this.list.array = data; } } 代码中,m_label的命名要与List列表项下的Label组件命名相同。 1.2.5 运...

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

3. 资源加载 · LayaAir3.4 · 引擎文档 · LAYABOX [ 83%]

...些封装。 比如我们用load()方法加载一个json数据,需要在data里才能取到json文件里的数据。 使用load()方法,示例如下: onEnable(): void { const jsonPath: string = "json/bagList.json"; Laya.loader.load(jsonPath).then((json) => { let _json = json.data; if (_json...

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

4. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 82%]

... = layaair.game.Market.MarketTest@4a7c91fc D/dalvikvm: Trying to load lib /data/app-lib/com.layabox.game-2/liblayaair.so 0x94f7d5b8 D/dalvikvm: Added shared lib /data/app-lib/com.layabox.game-2/liblayaair.so 0x94f7d5b8 I/LayaBox: setLocalizable:1 I/LayaBox: JNI setIsPlug:0 I/LayaBox: JNI seturl...

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

5. 组件装饰器说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 75%]

...置有:number,string,boolean,color,vec2,vec3,vec4,asset hidden hidden: "!data.a" true隐藏,false显示。可以直接使用布尔值,也可以使用表达式,通过将条件表达式放到字符串里,获得布尔类型的运算结果。字符串表达式内,data是一个固定名字的...

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

6. 2.x引擎项目升级说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 74%]

...) { return task.loader.fetch(task.url, "json", task.createCallback()).then(data=> { let obj = /*解析data*/; return obj; }); } } 加载类里不需要考虑是单独加载,还是是批量加载其中一个环节,因为task.createCallback可以很好的将总体进度归一化为0~1。 复杂...

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

7. laya.ui.Image_API3.0 [ 70%]

...endMode bottom cacheAs centerX centerY color components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray group height hideFlags hitArea is3D left mask mouseEnabled mouseX mouse...

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

8. laya.resource.HTMLCanvas_API3.0 [ 70%]

...HTMLCanvas.ts:94 销毁。 override Returns void event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是...

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

9. laya.resource.Texture2DArray_API3.0 [ 67%]

...Format hasListener isCreateFromURL off offAll offAllCaller on once setImageData setPixlesData setSubPixelsData destroyUnusedResources Constructors constructor new Texture2DArray(width: number, height: number, depth: number, format: TextureFormat, mipmap?: boolean, canRead: boolean, sRGB?: boolean): ...

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

10. laya.resource.Texture2D_API3.0 [ 65%]

...ssFormat hasListener isCreateFromURL off offAll offAllCaller on once setDDSData setHDRData setImageData setKTXData setPixelsData setSubPixelsData destroyUnusedResources load Constructors constructor new Texture2D(width: number, height: number, format: TextureFormat, mipmap?: boolean, canRead: boolea...

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