大约有 518 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0151 秒)
...tring): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获取这个粒子特效的所有粒子系统,用于后面...
来源: Laya3.0_文档 发布时间: 20251010
...tring): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获取这个粒子特效的所有粒子系统,用于后面...
来源: Laya3.0_文档 发布时间: 20250104
...lass() export class MsgRT extends MsgRTBase { onOpened(param: any): void { console.log(param.text); } } 这样,点击Scene场景中的Button,就会打印日志“点击成功!”,效果如动图2-3所示: (动图2-3) 2.3 关闭场景 1,关闭指定的场景 /** * 根据地址,关...
来源: Laya3.0_文档 发布时间: 20251010
... { function Client() { } Client.prototype.start = function () { // body... console.log("调用方法"); }; return Client; })(); console.log("我被加载进来了"); ``` 下面我们简单的讲解下这两段代码。 `var script:any = Laya.Browser.document.createElement("script");`创建一个scri...
来源: Laya2.0_文档 发布时间: 20210715
...//给 shape 对象添加点击事件侦听。 } function onClickSprite() { console.log("点击 sprite 对象。"); sprite.rotation += 5;//旋转 sprite 对象。 } function onClickShape() { console.log("点击 shape 对象。"); shape.rotation += 5;//旋转 shape 对象。 } example import Sprite = ...
来源: Laya3.0_api 发布时间: 20231115
...s.create(); this.scene3d.addChild(sp3); }); }) } printProgress(res: any) { console.log("加载进度" + JSON.stringify(res)); } } 下面重点介绍一下printProgress打印的内容,在微信开发者工具打开并编译我们导出的项目后,会打印如下日志: (图4-2) wx.loadSubp...
来源: Laya3.0_文档 发布时间: 20251010
...(){ function Client() { } Client.prototype.start = function() { // body... console.log("调用方法"); }; return Client; })(); console.log("我被加载进来了"); ``` 下面我们简单的讲解下这两段代码。 ` var script:Object = Browser.document.createElement("script");`创建一个scrip...
来源: Laya2.0_文档 发布时间: 20210715
...type var _proto = RunGame.prototype; //初始化 _proto.init = function(){ console.log('RunGame Init'); //背景 this.bg = new Background(); this.addChild(this.bg); //地板 this.mapFloor = new MapFloor(); this.addChild(this.mapFloor); //飞行能量条 this.flyEnergy = new Hp(Hp.HP_TYPE_ENERGY); th...
来源: Laya_社区 发布时间: 20160803
... { function Client() { } Client.prototype.start = function () { // body... console.log("调用方法"); }; return Client; })(); console.log("我被加载进来了"); 下面我们简单的讲解下这两段代码。 var script:any = Laya.Browser.document.createElement("script");创建一个script标...
来源: Laya3.0_文档 发布时间: 20251010
...andler.create(this,loadComplete));//加载资源 function loadComplete() { console.log("资源加载完成!"); var colorPicket = new laya.ui.ColorPicker();//创建一个 ColorPicker 类的实例对象 colorPicket 。 colorPicket.skin = "resource/ui/color.png";//设置 colorPicket 的皮肤。 colo...
来源: Laya3.0_api 发布时间: 20231115