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

大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0085 秒)

1201. 图集动画播放问题 [ 85%]

图集动画播放问题 this.ded.play(0, false); this.ded.on(Laya.Event.COMPLETE, this, this.onHitOver);  播放完 "ded" 动画后, 有时候会出现延迟,没有立即运行onHitOver()方法,有什么解决办法吗? 2018-11-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

1202. Tab组件如何通过js控制选中 [ 85%]

Tab组件如何通过js控制选中 this._tab._selectedIndex = 0   _tab为在UI编辑器下定义的var值   这样操作不能实现么 2017-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞...

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

1203. getCharPoint的bug [ 85%]

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

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

1204. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 85%]

...必须的 @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_文档 发布时间: 20250214

1205. 解决跨域相关! [ 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

1206. 最新版本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

1207. 照相机-正交相机 [ 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_示例 发布时间: 20250227

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

...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

1209. localToGlobal坐标转换 [ 84%]

...是如下写的,感觉转换后还是局部坐标 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

1210. 【解决】富文本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