• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,012 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0067 秒)

111. 射线检测报错,outHitInfo.sprite3D=null; [ 81%]

...is.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); }  public _start(state:Laya.RenderState):void{ this.ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vector3.ZERO); this.phasorSprite3D = new Laya.PhasorSpriter3D();...

来源: Laya_社区 发布时间: 20181020

112. 是否支持条件编译? [ 81%]

... 赞同来自: 没有这样的参数,如果想关闭的话可以重写下console里边的log 2017-11-20 0 8 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 lilynumber1 相关问题 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面...

来源: Laya_社区 发布时间: 20171120

113. 程序当中更改适配模式后,没有生效成相对应的适配模式效果是为什么? [ 81%]

...tageHeight = Laya.Browser.clientHeight; if (stageWidth < stageHeight) { console.log("one", Laya.stage.scaleMode) Laya.stage.scaleMode = Laya.Stage.SCALE_NOSCALE; //1 console.log("one1", Laya.stage.scaleMode) } else { console.log("two", Laya.stage.scaleMode) Laya.stage.scaleMode = Laya.Stage.SCALE...

来源: Laya_社区 发布时间: 20170920

114. 在线急等,发现你们这个编译器一个bug,不能实现负负得正,昨天明明解决了,过了一会又不行了,怎么回事 [ 81%]

...moveDownBall = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.img1 ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; console.log("33333"); } if (this.ball.x + this.v...

来源: Laya_社区 发布时间: 20171108

115. list item 添加事件后无法监听 [ 81%]

...Item);     return list; }  function updateItem(cell, index) {     console.log(index);     // console.log(cell.dataSource);     cell.setImg(cell.dataSource[index]);     cell.on(Laya.Event.CLICK, function() {         console.log("click")     }) }  function onSelect(in...

来源: Laya_社区 发布时间: 20180724

116. Layabox web 复制一段文字到剪贴板 [ 81%]

...t: function () { return str; } })  clipboard.on("success", function (e) { console.log("ok:") console.log(e) clipboard.destroy(); }) clipboard.on("error", function (e) { console.log("err:") console.log(e) clipboard.destroy(); })  //确认按钮 this.confirmBtn.onclick = function () { _this.CloseDiv...

来源: Laya_社区 发布时间: 20181214

117. 关于HttpRequest [ 81%]

... new Laya.HttpRequest(); hr.once(Laya.Event.PROGRESS, this, function (e) { console.log(e); }); hr.once(Laya.Event.COMPLETE, this, function () { console.log(hr.data); }); hr.once(Laya.Event.ERROR, this, function (e) { console.log(e); }); hr.send('http://stone.tt.be-xx.com/git/test.php', s, 'post', 't...

来源: Laya_社区 发布时间: 20170628

118. 使用getUserInfo获取的用户信息 [ 81%]

...getUserInfo({ withCredentials:false, lang: 'zh_CN', success: (res) => { console.log(res); // BigData.ins.user = res.data[0]; }, fail: () => { console.log("userInfo"+JSON.stringify("fail")); }, complete: () => { // console.log("userInfo"+JSON.stringify(selfData)); } Res打印出来时空的 ...

来源: Laya_社区 发布时间: 20190917

119. 请问laya2.0 2d物理有射线检测功能吗 [ 81%]

...aya.Physics.I.world world.RayCast(function(fixture,point,normal,fraction){ console.log("fixture",fixture) console.log("point",point) console.log("normal",normal) console.log("fraction",fraction) },{ x:300, y:100 },{ x:300, y:1000 }) //每碰到一个物体就会触发一次回调函数,没碰到...

来源: Laya_社区 发布时间: 20190519

120. layaair获取xml信息出错 [ 81%]

...  代码: var configData:XmlDom = Loader.getRes(config_PATH) as XmlDom; console.log(configData); console.log(configData.attributes); console.log(configData.childNodes);   xml如下: <root>     <config>          <PATH>../h5/</PAHT>     </config> </r...

来源: Laya_社区 发布时间: 20170531