大约有 3,124 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0115 秒)
...我创建了一个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
...舞台上显示多个动画。 代码示例: ```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
...果变成这个错误 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
...信 雄二 赞同来自: const { regClass, property } = Laya; @regClass() export class StartScene extends Laya.Script { onAwake(): void { Laya.timer.once(1000, this, () => { Laya.loader.loadPackage("common", "http://127.0.0.1:2840", (p) => { console.log("common", p); }) }); } } 2024-11-04 0 0 ...
来源: Laya_社区 发布时间: 20241101
...类的js,这样导致程序初始化报错了。 子类是这样写的 export class LayaHelper<V extends LayaView<IModel>> extends BasicHelper<LayaView<IModel>> 这样LayaHelper的js文件就在比较前面插入了,而BasicHelper.js就在后面插入了 我改成export c...
来源: Laya_社区 发布时间: 20170208
...吗 2025-08-01 0 0 分享 微博 QZONE 微信 159*****398 赞同来自: export class Main extends Laya.Scene { onAwake(): void { Laya.loader.load("/未命名.atlas", Laya.Loader.ATLAS).then(data=>{ let aaa = new Laya.Sprite(); this.addChild...
来源: Laya_社区 发布时间: 20250801
...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_文档 发布时间: 20251010
...ass(),示例代码如下所示: const { regClass } = Laya; @regClass() export class Script extends Laya.Script { } 1.2 IDE中如何找到被识别的组件脚本 只有使用了@regClass()装饰器标识,才会被LayaAir3-IDE识别为自定义组件脚本,可以被节点(实体)所添加...
来源: Laya3.0_文档 发布时间: 20251010
...们刚才预览的场景,当配置好输出场景设置后。 点击Laya Export 按钮,导出一个Scene3D与Sprite3D各一个,合并的一个文件夹目录结构如下(图1)。 (图1) 见上图文件资源,导出后生成了.ls、.lm、.lmat数据资源,及贴图jpg、p...
来源: Laya2.0_文档 发布时间: 20210714
...一个文件夹npc,并且创建一个类。代码如下:module npc { export class BaseNPC extends Laya.Sprite { constructor() { super(); this.graphics.drawCircle(0, 0, 10, "#ff0000"); } } } 然后在我的主文件中import,并new出来。代码如下:import BaseNPC = npc.BaseNPC; var npc...
来源: Laya_社区 发布时间: 20180205