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

大约有 3,003 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0070 秒)

101. layacmd atlas报错 [ 72%]

...rocess.js:319 throw errnoException(err, 'spawn'); ^ Error: spawn EACCES at exports._errnoException (util.js:1020:11) at ChildProcess.spawn (internal/child_process.js:319:11) at exports.spawn (child_process.js:369:9) at Object.<anonymous> (/usr/local/lib/node_modules/layacmd/layacmd-atlas.js:88...

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

102. 组件装饰器说明 · LayaAir3.0文档 · LAYABOX [ 72%]

...ass(),示例代码如下所示: const { regClass } = Laya; @regClass() export class Script extends Laya.Script { } 如动图1-1所示,只有使用了上述的这个装饰器标识,开发者自定义的组件脚本才会被IDE识别为组件,可以被节点(实体)的属性设置面板 ...

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

103. 内嵌模式创建scene,运行时报找不到json文件 [ 72%]

...createView()进行创建,并且都是ide自动生成的代码。     export module ui { export class HelloUI extends Scene { public static uiView:any ={"type":"Scene","props":{"width":640,"height":1136},"compId":2,"child":[{"type":"Label","props":{"y":64,"x":214.5,"width":211,"text":"label","sty...

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

104. 绘制矩形与圆角矩形(TypeScript-LayaAir基础篇(TS)-矢量图) [ 72%]

... Sprite = Laya.Sprite;     import Stage = Laya.Stage;       export class Sprite_DrawShapes {         private sp: Sprite;           constructor()         {             //初始化舞台             Laya.init(500, 300);       ...

来源: Laya2.0_文档 发布时间: 20210715

105. 分享关于TS在1.x和2.x模块差异 [ 72%]

...bundle.js。原因看后面。模块的导出和加载使用ES6标准的`export或者export default`和`import a from "./a"`。由于使用了browserify和tsify编译,browerify是根据入口文件开始查找所有import文件,根据依赖关系进行编译,所以根本找不到namespace的...

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

106. 为什么rotation、scale赋值了不管用? [ 72%]

...我创建了一个Sprite3D: this.role3D = Laya.MeshSprite3D.load("3d/ben/Export.lh") this.role3D.transform.scale = new Laya.Vector3(0.5,0.5,0.5); this.role3D.transform.position = new Laya.Vector3(0,20,0); 以上的scale、position设置均不起作用,但是我放到frameloop里就有用,请...

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

107. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 71%]

...舞台上显示多个动画。 代码示例: ```typescript module laya{ export class SkeletonTempletSample { templet: Laya.Templet; constructor() { Laya.WebGL.enable(); Laya.init(1000, 900); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.par...

来源: Laya2.0_文档 发布时间: 20210715

108. 谷歌浏览器运行错误 [ 71%]

...果变成这个错误 Error processing "launch": Error: spawn UNKNOWN at exports._errnoException (util.js:1022:11) at ChildProcess.spawn (internal/child_process.js:313:11) at Object.exports.spawn (child_process.js:399:9) at launch.then (d:\Programes\LAYA\resources\app\extensions\laya-debug\out\bundl...

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

109. LayaAir无法正确识插入别泛型TS代码生成js文件到html中 [ 71%]

...类的js,这样导致程序初始化报错了。 子类是这样写的 export class LayaHelper<V extends LayaView<IModel>> extends BasicHelper<LayaView<IModel>> 这样LayaHelper的js文件就在比较前面插入了,而BasicHelper.js就在后面插入了 我改成export c...

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

110. UI运行时 · LayaAir3.0文档 · LAYABOX [ 71%]

...import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } } 其次,可...

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