大约有 1,546 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0068 秒)
...ring = "res/layaScene/xiangsuqiche.ls"; public LoadScene3D(): Laya.Scene { console.log("screen#DPath = " + this.screen3DPath); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.stage.addChildAt(scene, 0); this.InitCamera(scene); return scene; } 微信小游戏报错 Scene: the .lh fil...
来源: Laya_社区 发布时间: 20180323
....aa.shuchu();//输出这个组件num,结果为2,是LayaSample.bb的num console.info(s); }, 1000); } } class Child{ private _num:string; public num(n:string){ this._num = n; } public shuchu(){ return this._num; } } new LayaSample(); 2018-08-05 3 0 分享 微博 QZONE 微信 手撕腊鸭 赞同来...
来源: Laya_社区 发布时间: 20180729
.../layaMaxUI.ts" let fileContent = readFile(layaMaxUI_Path); console.log("读取文件",fileContent) if (fileContent ) { fileContent = fileContent.replace(/Laya\.UICodeView/g,"UICodeView"); fs.writeFileSync(layaMaxUI_Path, fileCon...
来源: Laya_社区 发布时间: 20190128
...ource.value; // cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } })();这段代码直接复制到官网的例子里面执行就能看到了,最新版本引擎中,在renderHandler中强制设置TextInput的值,不会出现数据乱的...
来源: Laya_社区 发布时间: 20180312
...;/dir>"+ "</data>"; var xml = this.parseXMLFromString(xmlString); console.log(this.m_tree) this.m_tree.xml =xml; 2017-07-17 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 这里以alpha,官方tree示例为例,你可以参考下 1、在xml里,给你的项添加一个关于alph...
来源: Laya_社区 发布时间: 20170717
...e { private _animator: Laya.Animator; private _isRun: boolean; onAwake() { console.log("Game start"); //加载指定的模型预制体,并添加到Scene3D场景内 Laya.loader.load("girl/girl.lh").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animat...
来源: Laya3.0_文档 发布时间: 20240910
...is, this.onComplete)); //this.onComplete() console.log("11111111111") Laya.loader.load("res/threeDimen/particle/2d.lh", Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } public onAssetsLoaded(settings: ParticleSetting): ...
来源: Laya_社区 发布时间: 20190509
...urn new Promise((resolve,reject)=>{ Laya.timer.once(10000,this,()=>{ console.log("10s后") resolve() }) }) } 如果有什么问题,欢迎大家一起来分享感恩。 附件 : --> regenerator.runtime_.zip 2020-07-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20200705
...工程 bt_rank_call_back(body){ this.bt_rank.CALL_BACK = function () { console.log("排行榜") var player_rank = body.wxData.get_canvas_4_code("SHOW_PLAYER_RANK",0) var rankTexture = new Laya.Texture(sharedCanvas); rankTexture.bitmap.alwaysChange = true; var pl = new Laya.Sprite() pl.graphics.dr...
来源: Laya_社区 发布时间: 20181217
...rototype; _proto.preload = function (complete) { console.log("preload..." + (++this.numPreloadCalls)); if (this.dragon_sk._templet) { complete(); } else { Laya.timer.frameOnce(1, this, this.pr...
来源: Laya_社区 发布时间: 20180622