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

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

1221. 示例 骨骼动画换装 加不上点击事件 [ 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

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

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

1224. 插件开发说明 · LayaAir3.3 · 引擎文档 · 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

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

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

1227. list 加载动画为什么实现的效果会错乱掉? [ 84%]

...乱掉? var WID = 80, HEI = 400; function Item1() { Item1.__super.call(this); this.size(WID, HEI); this.setImg = function(src) { var ani = new Animation(); ani.loadAtlas(src); // 加载图集动画 ani.interval = 100; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ...

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

1228. UI-TextArea [ 84%]

...ALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = ...

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

1229. 资源版本问题 [ 84%]

...E_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, beginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/icon.atlas" }, { url: "res/atlas/human.atlas" }], Laya.Handler.create(this, progress, null, false), null, Laya.Loader.ATLAS) }...

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

1230. 创建laya的视图销毁destroy()清除不了 [ 84%]

....display.Sprite { private display:ui.mail.mail2UI; constructor(){ super(); this.display = new ui.mail.mail2UI(); this.addChild(this.display); } public destroy():void { this.display.destroy(); this.display.removeSelf(); super.destroy(); } }就是这段简单的测试代码,怎么销毁,内存还...

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