大约有 1,057 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0084 秒)
...gClass, 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.Sprite; @property({ type: Laya.Sprite }) mesh2: Laya.Sprite; private light1Render: Laya.F...
来源: Laya3.0_文档 发布时间: 20251010
...ance 一直等于-1? -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel:Laya.Sprite3D; /*角色动画组件*/ public roleAni:Laya.Animator; /*角色当前动作*/ public currentAction:string = "stand"; /*角色动画是否完成*/ publ...
来源: Laya_社区 发布时间: 20171113
...indow is not defined 真机调试报错:LayaPlayer不支持的标签</SCRIPT> IDE通过.ui自动生成的ui代码报错 laya2 发布微信开放域工程,用微信开发者工具打开报错 小游戏项目 加载有中文的json文件 报错 播放背景音乐的问题 刚打开 桌面调...
来源: Laya_社区 发布时间: 20180626
...! Exit status 1 npm ERR! npm ERR! Failed at the electron@1.7.9 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\guanll\AppData\Roaming\npm-cache\_logs\2...
来源: Laya_社区 发布时间: 20171027
...如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { declare owner: Laya.Image; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { //需要先加载图集再使用,注意,图集要放到resources目录下或者在...
来源: Laya3.0_文档 发布时间: 20251128
...ir2-cmd 编译报错 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 自定义场景类导出layaMaxUI.ts有前缀导致报错 小游戏项目 加载有中文的json文件 报错 本地调试加载本地图片都报错 runtime运行报错! 用了ByteArray的zlib.min.js后报错 ...
来源: Laya_社区 发布时间: 20181024
... { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压缩的图片的路径 } onStart() { Laya.Stat.show(0, 0); //性能面板 } } 发...
来源: Laya3.0_文档 发布时间: 20251010
...ss, property } = Laya; @regClass() export class LightOccluder extends Laya.Script { private spotLight: Laya.Sprite = new Laya.Sprite(); private background: Laya.Sprite = new Laya.Sprite(); private lightOccluder: Laya.Sprite = new Laya.Sprite(); private backgroundTexture: string = "resources/bg2.png"...
来源: Laya3.0_文档 发布时间: 20251010
...t Pre(T_2DContextPre)3.17 2D Context Render(T_2DContextRender)3.18 Script Update Time(T_ScriptUpdateTime)3.19 Script Late Update Time(T_ScriptLateUpdateTime)4. Draw Call(绘制调用)4.1 Opaque DrawCall(CT_OpaqueDrawCall)4.2 Trans DrawCall(CT_TransDrawCall)4.3 Depth Cast ...
来源: Laya3.0_文档 发布时间: 20260128
...代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件...
来源: Laya3.0_文档 发布时间: 20251010