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

大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)

3821. Native 在iOS上支付失败的问题,及临时解决方法 [ 47%]

....recharge方法,发起支付返回失败,输出报错如下:Warning: This app is not entitled to use SKPayment requestData. requestData will not be sent. [IAP] Transaction error: 无法连接到 iTunes Store 10 [IAP] SKPaymentTransactionStateFailed经过调试发现IAPManager有如下代码 SK...

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

3822. ui设计模式下属性中var,name有何区别? [ 47%]

...var命名为c,那么a组件的运行时代码里就可以直接用a.c或this.c访问到b组件; name是给显示节点对象的命名,请查看API手册里Node部分。同上面的例子,要在a组件的运行时里通过name访问b,要使用getChildByName(c) 2021-01-23 0 0 分享 微博 Q...

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

3823. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 47%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from PixelLineSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:296 克隆。 Returns Node 克隆副本。 contains contains(no...

来源: Laya3.0_api 发布时间: 20231102

3824. 分离模式下使用自定义场景类 [ 47%]

...tr) > -1 ? str : '='; tStr = StringTool$1.trimSide(tStr.split(str)[0]); this.importDic[tStr] = true; }当然也可以把CodeManager.parseTsImport的函数体也改了,虽然说用不到。改完后保存,重启IDE即可实现功能;如果修改之前已经导出过一次,需要清理一...

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

3825. dialog 里的数据已经获取到了,也赋值了但是页面没跟新,addChild好像无效果 [ 47%]

... • 2018-12-21 12:10 然后你的addchild可以添加在dialog页面,既this.addchild(),不一定要在stage上。因为dialog是最上层页面场景,可能会把你添加在stage上的遮住。 X. • 2018-12-21 14:37 @内涵tv何吓吓:2.0的,我换了一种方法写就可以i了

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

3826. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 47%]

...    var index:int = 0;             Laya.stage.timerLoop(1, this, function():void{index++;image.alpha = Math.sin(Math.PI*2*(index/24))})              var image:Image = new Image();             image.blendMode = "add";             image.skin = "res/...

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

3827. 如何加载一个HTML页面 [ 47%]

...自: 代码如下,可是这个页面无法显示 ,且一直报错,"This page contains the following errors:error on line 1 at column 7: internal error: detected an error in element contentBelow is a rendering of the page up to the first error." (function() { var Stage = Laya.Stage; var Text  ...

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

3828. 这个怎么办 laya.core.js:16463 Uncaught TypeError: Cannot read property '_tf' of null [ 47%]

...出报错Uncaught getUint16 error - Out of bounds 莫名其妙的报错,this.getStyle()是null 射线检测报错,outHitInfo.sprite3D=null; 问题状态 最新活动: 2018-10-25 14:42 浏览: 1159 关注: 2 人 123黄 • 2018-10-27 11:30 解决了 http://ask.layabox.com/questio ... 30656

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

3829. box2d 弹性异常 [ 47%]

...ter(other: any, self: any, contact: any): void { let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody) as Laya.RigidBody; let velocity = rig.linearVelocity; console.log(velocity) } 你把初始弹射改成一个球,你就会发现,这个球,他的水平速度x 小于一定值后就...

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

3830. libwebsocket [ 47%]

...018-08-21 11:20:31.548226+0800 game_hao[6707:3937898] new JSWebSocket::this=c41bb4a0 deletgate=c425c050 2018-08-21 11:20:31.548618+0800 game_hao[6707:3937898] WebSocket::init m_host: game.example.com, m_port: 6666, m_path: /ws/ [2018/08/21 11:20:31:5503] NOTICE: Initial logging lev...

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