大约有 90 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
...; mesh.meshRender.receiveShadow = true; mesh.meshRender.castShadow = true; console.log(mesh.name) } 附件 : --> 2017-11-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ymsdandan 赞同来自: MorningPark 、Lay...
来源: Laya_社区 发布时间: 20171110
...tPos.z + (2.5 - Math.random() * 5)); console.log('----------------goldnode', goldNode); this.playerGoldArr.push(goldNode); goldNode.addComponent(goldItemNode); 报错信息: Uncaught TypeEr...
来源: Laya_社区 发布时间: 20200326
...@param e 事件对象 */ private onHttpRequestError(e: any = null): void { console.error("请求失败:", e); this.logger.text = "请求失败,请重试。\n"; } /** * 请求进度改变触发的回调 * @param e 事件对象 */ private onHttpRequestProgress(e: any = null): void { //进度的百...
来源: Laya3.0_文档 发布时间: 20251010
...addChild(list); list.array = effList; } function updateItem(cell, index) { console.log(cell.dataSource); cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } 我想实现的效果是 设置每个特效宽高都为80 * 80 然后一...
来源: Laya_社区 发布时间: 20170627
...题,很奇怪啊 var v: Laya.Vector3 = new Laya.Vector3(1.1069, 0, 0); console.log(v.x); 输出:1.1068999767303467 而不是1.1069 我想保留2位或3位小数,不管你怎么设置,然而始终无效。1.1068999767303467 怎么解? 2019-03-06 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20190306
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 大量sprite如何优化性能 请教下微信小游戏的内存和数据缓存? 1.7.20beta有bug,帧属性面板打不开 laya如何重写console.log 打...
来源: Laya_社区 发布时间: 20241015
... constructor(){ super(); this.btnLogin.on(Laya.Event.CLICK,this,()=>{ console.log('btnLogin click') }) } createChildren(){ super.createChildren(); this.loadScene('LoginScene'); } } import LoginScene from "./script/LoginScene" /* * 游戏初始化配置; */ export default class GameCo...
来源: Laya_社区 发布时间: 20190402
...enceCount); if (this.bitmap.referenceCount===0){ this.bitmap.destroy(); // console.log("texture2d destory"); } this.bitmap=null; } if (this.url && this===Laya.loader.getRes(this.url)) Laya.loader.clearRes(this.url); } }增加的代码是 if (this.bitmap.referenceCount===0){ this.bitmap.dest...
来源: Laya_社区 发布时间: 20190320
... QZONE 微信 177*****621 赞同来自: onStart() { console.log("Game start"); Laya.Config.isAlpha = true; Laya.stage.bgColor ="none"; this.Show(); } private iframe: any = Laya.Browser.document.cr...
来源: Laya_社区 发布时间: 20240304
... this.animator = this.sprite.getComponent(Laya.Animator) as Laya.Animator; console.log("11"); } public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.transform.translate(norDir,false); // let position...
来源: Laya_社区 发布时间: 20191026