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

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

1221. getCharPoint的bug [ 85%]

...  上面的length没考虑换行符,但下面又有句这样的代码:this._text.substring(startIndex, charIndex)   其中this._text却是有换行符的字符串,这样返回的结果就不对了   我建议的改动很可能不是最佳的,毕竟对牵连的东西了解太少了,目...

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

1222. 解决跨域相关! [ 85%]

...就连www.baidu.com,这个加头后,为啥还连不上, 看代码-> this.hr=new HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.ERROR, this, this.onHttpRequestError...

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

1223. 最新版本IDE,如何获取http返回的json数据 [ 85%]

...; xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.once(Event.PROGRESS,this,processHandler);  var sendData = {account:"aaa",password:"bbb"} xhr.send("http://xxx/login", JSON.stringify(sendData), "post", "jso...

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

1224. 照相机-正交相机 [ 85%]

.../LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { layaMonkey.transform.localScale = new Laya.Vector3(3, 3, 3); //转换2D屏幕坐标系统到3D正交投影下的坐标系统 camera.convertScreenCoordToOrthographicCoord(pos, _translate); layaMonkey.transf...

来源: Laya_示例 发布时间: 20260303

1225. 示例 骨骼动画换装 加不上点击事件 [ 85%]

...ale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(); //Laya.timer.loop(1000, this, changeSkin); } 2...

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

1226. localToGlobal坐标转换 [ 85%]

...是如下写的,感觉转换后还是局部坐标 var globalPos:Point = this._toolbar.btn_mian_recruit.localToGlobal(new Point(this._toolbar.btn_mian_recruit.x, this._toolbar.btn_mian_recruit.y)); 2016-08-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

1227. 【解决】富文本html下划线换行bug [ 84%]

...__proto.renderSelfToGraphic=function(graphic,gX,gY,recList){ var cssStyle=this.style; var words=this._getWords(); var i=0,len=0; if (words){ len=words.length; var a; if (cssStyle){ var font=cssStyle.font; var color=cssStyle.color; if (cssStyle.stroke){ var stroke=cssStyle.stroke; stroke=parseInt(str...

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

1228. 插件开发说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 84%]

...必须的 @IEditorEnv.regClass() export class TestSceneScript { //注意:this是当前的IEditorEnv.IGameScene对象,如果不需要,也可以省略这个声明 static test(this: IEditorEnv.IGameScene, msg: string) { console.log(msg); //hello return "ok"; } } //下面是UI进程的代码 let r...

来源: Laya3.0_文档 发布时间: 20251010

1229. [LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果? [ 84%]

...ra: Laya.Camera;    onStart() {     //@ts-ignore     window.camera = this.camera;     console.log("Game start", this.camera._up);     console.log(       "Game start",       this.camera._up.x,       this.camera._up.y,       this.camera._up.z     );   } } 附件 : --> testProj...

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

1230. Laya.timer缩放问题 [ 84%]

Laya.timer缩放问题 Laya.timer.loop(1,this,this.fun);将Laya.timer.scale = 0.1;没有效果; Laya.timer.frameLoop(1,this,this.fun)将Laya.timer.scale = 0.1;则可以看到方法调用的频率变低了,这是为什么? 2019-10-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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