大约有 589 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0043 秒)
Laya_社区(199) Laya2.0_示例(114) Laya3.0_文档(94) Laya2.0_api(91) laya_api(48) Laya_示例(24) Laya2.0_文档(16) Laya3.0_api(3)
...handsomecat-1/lib/arm64/liblayaair.so (laya::JCFileResManager::getRes(char const*, int, int)+148) [arm64-v8a] 2 #01 pc 00000000005c6cd8 /data/app/com.mylafe.game.handsomecat-1/lib/arm64/liblayaair.so (laya::JCAudioWavPlayer::playAudio(laya::JCAudioInterface*, std::string const&, bool)+184) [arm...
来源: Laya_社区 发布时间: 20191030
...组合这些值 将结果赋值给图层遮罩属性 示例代码如下: const { regClass, property } = Laya; @regClass() export class lightTest extends Laya.Script { declare owner: Laya.Sprite; @property({ type: Laya.Sprite }) light1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh1: Laya.Spri...
来源: Laya3.0_文档 发布时间: 20251010
...类都要增加一个适配。比如`Laya.EventDispatcher`: ```ts export const EventDispatcher = Laya.EventDispatcher; ``` ## 更改ts编译配置 使用示例项目中的`tsconfig.json`覆盖原来的`tsconfig.json`文件。这样我们就可以使用tsc watch模式实现极速编译,而且还可...
来源: Laya_社区 发布时间: 20170817
... success 回调来通知加载完成。示例代码如下: ```javascript const loadTaskA = qg.loadSubpackage({ name: 'sub1Name', success: function (data) { console.info('加载分包 sub1Name 成功') }, fail: function (err) { console.info('加载分包 sub1Name 失败', err) }, complete: function...
来源: Laya2.0_文档 发布时间: 20210714
... success 回调来通知加载完成。示例代码如下: ```javascript const loadTaskA = qg.loadSubpackage({ name: 'sub1Name', success: function (data) { console.info('加载分包 sub1Name 成功') }, fail: function (err) { console.info('加载分包 sub1Name 失败', err) } } ) ``` 加载成...
来源: Laya2.0_文档 发布时间: 20210715
...尽量用3.3.X 2025-12-19 0 0 分享 微博 QZONE 微信 lv 赞同来自: const { regClass } = Laya; import { VideoRuntimeBase } from "./VideoRuntime.generated"; @regClass() export class VideoRuntime extends VideoRuntimeBase { onEnable(): void { Laya.stage.on(Laya.Event.MOUSE_DOW...
来源: Laya_社区 发布时间: 20251218
... success 回调来通知加载完成。示例代码如下: ```javascript const loadTaskA = qg.loadSubpackage({ name: 'sub1Name', success: function (data) { console.info('加载分包 sub1Name 成功') }, fail: function (err) { console.info('加载分包 sub1Name 失败', err) } } ) ``` 加载成...
来源: Laya2.0_文档 发布时间: 20210715
...ublic static PROTO_STRING_VALUE: string = "proto_ParamsProto"; constructor() { // Pool.recover(ProtoPool.PROTO_HEAD, new com.bigao.h5.proto.Head()); // Pool.recover(ProtoPool.PROTO_BINARY_REQUEST, new com.bigao.h5.proto.BinaryRequest()); ...
来源: Laya_社区 发布时间: 20170807
...用资源,方法与web发布略有不同,加载代码示例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激...
来源: Laya3.0_文档 发布时间: 20251010
...= vb; o._startIdx = pos * CONST3D2D.BYTES_PIDX; o._numEle = 0; var blendType:int = context._nBlendType; o._blendFn = context._targets ? BlendMode.targetFns[blendType] : BlendMode....
来源: Laya_社区 发布时间: 20190628