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

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

2571. 其他引擎的Demo-Example_23 [ 40%]

...ge.removeChild(laser); i--; } } } // increment the ticker tick += 1; } } } import laya.display.Sprite; class Laser extends Sprite { public var life:int; }

来源: Laya2.0_示例 发布时间: 20260106

2572. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 40%]

...题 请问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

2573. localRotationEulerY旋转位置错误 [ 40%]

localRotationEulerY旋转位置错误 import { ui } from "./../ui/layaMaxUI"; /**  * 本示例采用非脚本的方式实现,而使用继承页面基类,实现页面逻辑。在IDE里面设置场景的Runtime属性即可和场景进行关联  * 相比脚本方式,继承式页面类...

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

2574. 动画混合无效(版本2.6) [ 40%]

...架 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 求助...

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

2575. Windows扩展 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...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

2576. laya2.10两个版本的测试,Oppo分包无法加载,读取资源报错,能加载分包无法读取回调 [ 40%]

...! 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 微信小程序—未找到入口 app.json 文件,或者文件读取失败,请检查后重新编...

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

2577. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 40%]

... }, } 但修改完配置编译的时候会报错:This syntax requires an imported helper but module 'tslib' cannot be found 开发群里有大神提供了一种解决办法: 右键 LayaAirIDE.app->显示包内容,定位到 Contents->Resources->app->node_modules->rollup->dist...

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

2578. Laya截图3D场景相关模型,导致模型透视! [ 39%]

...ned 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 从unity导出的场景透贴和模型烘焙的灯光不显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ 问题状态 最新活动: 2019-12-25 20:41 浏览: 1933 关注: 3 人 Chenyazhi • ...

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

2579. ENOENT: no such file or directory, open 'D:\layaidehello eleasewxgameLayaSample.js.map [ 39%]

...点儿代码 ,就想运行在微信上看看 海货 • 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

2580. [LayaNative3]Laya3.28/9原生打包ISO视频播放闪退 [ 39%]

...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