大约有 518 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)
...main.ts,输入以下代码: class main{ constructor(){ Laya.init(600,400); console.log(common.num); } } new main(); 这里面访问了另外一个文件common.ts中定义的类: class common{ constructor(){ } public static num : number = 1000000; } 然后启动调试,居然报了这个错: ...
来源: Laya_社区 发布时间: 20180208
...何计算反射线的向量? web端打包发布后能不能自动删除console.log IDE通过.ui自动生成的ui代码报错 问题状态 最新活动: 2024-02-28 15:40 浏览: 8206 关注: 3 人
来源: Laya_社区 发布时间: 20240119
...如: var a = new Laya.Vector3(1,0,0); var b = new Laya.Vector3(-1,0,0); console.log(Laya.Vector3.equals(a, b)); // 结果为true这样应该是不对的吧。 我现在只能把向量 x、y、z 分开来全部判断相等,才能判断相等。 2018-05-25 添加评论 免费帖 --> 分享 微博 ...
来源: Laya_社区 发布时间: 20180525
...更新失败会进入cofig.js里边 window.onLayaInitError==function=(e) {console.log("onLayaInitError error=" =+ e); talert(加载游戏失败,可能由于您的网络不稳定,请退出重进") } 这个方法,然后就停在这里了。这里能否再调回JAVA代码,让程序继续执行...
来源: Laya_社区 发布时间: 20181214
...事 let mesh = this.owner.getChildAt(1) as Laya.SkinnedMeshSprite3D; console.log(mesh.skinnedMeshRenderer.isRender); 这是我测试时的模型和代码,实际使用根据模型的导出的层级和类型而定。附:我使用的是2.6.1版本,据说2.5之后都是改成这样了,之...
来源: Laya_社区 发布时间: 20181009
...rrentSkin; this.spine3D.play("idle", false); //切换后重新播放一次 console.log(`当前皮肤切换至:${currentSkin}`); }); } } 2.4 动画名称 animationName 在前文的示例代码中,我们通过play方法来直接播放动画。为了在IDE面板中更方便易用,我们提供的...
来源: Laya3.0_文档 发布时间: 20260203
...微信 jonahzheng 赞同来自: /*Laya.init(600, 400); var aa = '1234567'; console.log(aa.substring(0,3));*/ (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Loader = laya.n...
来源: Laya_社区 发布时间: 20170825
...闪一闪的 没有一直显示啊 public onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); var num:number = Math.floor(value*100); // this.updateFont(num); this.updateFont(100); //test用 // if(num==100){ // G.I.loginManager.preload(); // } } private hbox:Lay...
来源: Laya_社区 发布时间: 20180615
...r.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,true,null,true); //console.log(Laya.Loader.loadedMap); } 另外就是加载的时候,不缓存资源,就不能读取文本内容。let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,...
来源: Laya_社区 发布时间: 20171227
...a = land.getChildByName("Camera"); camera.addComponent(CMS);//控制脚本 console.log(camera); } 2019-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 苏栢 相关问题 unity导出粒子文件问题 请问有没有方...
来源: Laya_社区 发布时间: 20180807