大约有 27 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0044 秒)
... this.translate = new Laya.Vector3(0,0,0); } onStart(){ this.scene = this.owner.parent; this.text = this.scene.parent.getChildByName("ceshi"); this.camera = this.scene.getChildByName("camera"); } onUpdate(){...
来源: Laya_社区 发布时间: 20190531
...0); img.skin = "resources/layabox.png"; //纹理压缩的图片的路径 } onStart() { Laya.Stat.show(0, 0); //性能面板 } } 发布后,使用的图片就是压缩后的图片了。 3.2 图集纹理压缩的加载 对于2D图集,预加载图集atlas文件即可,引擎在加载图集的时候...
来源: Laya3.0_文档 发布时间: 20251010
... this.first = true; this.twoFirst = true; } onStart(){ this._scene = this.owner.parent as Laya.Scene3D; this._text = this._scene.parent.getChildByName("ceshi") as Laya.Text; this._camera = this._scene.getChildByName("camera") as Laya.Cam...
来源: Laya_社区 发布时间: 20190605
...nds Laya.Script { //粒子特效的路径 private filePath = "FireEffect"; onStart() { console.log("Game start"); //加载粒子特效资源 Laya.loader.load(this.filePath, Handler.create(this, () => { })); } //每次鼠标点下屏幕后,会创建一个特效 mouseDown(e: Event): void { var pa...
来源: Laya3.0_文档 发布时间: 20251010
...nds Laya.Script { //粒子特效的路径 private filePath = "FireEffect"; onStart() { console.log("Game start"); //加载粒子特效资源 Laya.loader.load(this.filePath, Handler.create(this, () => { })); } //每次鼠标点下屏幕后,会创建一个特效 mouseDown(e: Event): void { var pa...
来源: Laya3.0_文档 发布时间: 20250104
...ite3D } ) private target: Laya.Sprite3D; private animator : Laya.Animator; onStart() { this.label.on( Laya.Event.CLICK, this, this.test ); //获得状态机 this.animator = this.target.getComponent<Laya.Animator>(Laya.Animator); } //运行状态机的跑动画,可使用动作融合方式 tes...
来源: Laya3.0_文档 发布时间: 20251010
...录的结构,或者进行必要的检查和安装等。 * @param task */ onStart?(task: IBuildTask): Promise<void>; /** * 正在收集需要发布的资源。assets集合是系统根据依赖、resources目录规则等所有有效的规则收集的所有需要发布的资源对象,你可...
来源: Laya3.0_文档 发布时间: 20251010