大约有 2,628 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0057 秒)
...ge.removeChild(laser); i--; } } } // increment the ticker tick += 1; } } } import laya.display.Sprite; class Laser extends Sprite { public var life:int; }
来源: Laya2.0_示例 发布时间: 20260106
...题 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 编译调试启动chrome出现错误: Error processing launch: Error Could not attach to main target ide 2.4 layaair2-cmd 编译...
来源: Laya_社区 发布时间: 20211013
localRotationEulerY旋转位置错误 import { ui } from "./../ui/layaMaxUI"; /** * 本示例采用非脚本的方式实现,而使用继承页面基类,实现页面逻辑。在IDE里面设置场景的Runtime属性即可和场景进行关联 * 相比脚本方式,继承式页面类...
来源: Laya_社区 发布时间: 20201120
...架 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 求助...
来源: Laya_社区 发布时间: 20200915
...Add(a: number, b: number): number; } export const testLib: ITestLib = Laya.importNative("LayaExt.dll"); 接着在组件脚本Main.ts中添加代码: import { testLib } from "./TestLib"; const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onStart() { alert(testL...
来源: Laya3.0_文档 发布时间: 20251010
...! 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 微信小程序—未找到入口 app.json 文件,或者文件读取失败,请检查后重新编...
来源: Laya_社区 发布时间: 20210106
... }, } 但修改完配置编译的时候会报错:This syntax requires an imported helper but module 'tslib' cannot be found 开发群里有大神提供了一种解决办法: 右键 LayaAirIDE.app->显示包内容,定位到 Contents->Resources->app->node_modules->rollup->dist...
来源: Laya_社区 发布时间: 20201223
...ned 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 从unity导出的场景透贴和模型烘焙的灯光不显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ 问题状态 最新活动: 2019-12-25 20:41 浏览: 1933 关注: 3 人 Chenyazhi • ...
来源: Laya_社区 发布时间: 20180503
...点儿代码 ,就想运行在微信上看看 海货 • 2018-07-15 16:17 import WebGL = Laya.WebGL; // 程序入口 class GameMain { constructor() { //TS或JS版本初始化微信小游戏的适配 Laya.MiniAdpter.init(); //初始化引擎 Laya.init(600, 400, WebGL); //设置屏幕缩放模式 Lay...
来源: Laya_社区 发布时间: 20180715
...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_DOWN, () => { ...
来源: Laya_社区 发布时间: 20251218