大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0141 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...交 2 个回复 layabox 赞同来自: 开发者自己写的错误代码,this._closeButton = fgui.UIPackage.createObject("Package1", "image"); 应该改成this._closeButton = fgui.UIPackage.createObject("Package1", "Component1"); 2025-09-08 0 2 分享 微博 QZONE 微信 LayaAir大为 赞同来自:...
来源: Laya_社区 发布时间: 20250829
...; //创建动画模板 templet = new Templet(); templet.on(Event.COMPLETE, this, parseComplete); templet.on(Event.ERROR, this, onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); } private function onError():void { trace("parse error"); } private function parseComplete():...
来源: Laya2.0_文档 发布时间: 20210715
... { var _canvas:* =this.drawToCanvas(this.width,this.height,0,0); var base64:* = _canvas._canvas.source.toDataURL(); return base64; } 附件 : --> 2017-04-01 添...
来源: Laya_社区 发布时间: 20170401
...位置(Transform.rotation)。 当我利用下式旋转后, this.needle.transform.rotate(vect,false,false); 我可以看到模型transform.rotation值的变化, console.log(this.needle.transform.rotation); 但是,我查看 console.log(this.needle.transform.ro...
来源: Laya_社区 发布时间: 20171206
... function Prefab(){ /**@private */ this.json=null; } __class(Prefab,'laya.components.Prefab'); var __proto=Prefab.prototype; /** *通过预制创建实例 */ __proto.create=function(){ i...
来源: Laya_社区 发布时间: 20181102
...参数? Tween.to(sp, {x:_x, y:_y, alpha:1}, 1000, null, Handler.create(This, function(){ sp.destroy(); }), 500); 这样写sp并不能被销毁,请问laya里沒有onCompleteParams方法吗? 2017-06-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20170608
...办法 鼠标按下时设置 hScrollBar.changeHandler = new Laya.Handler(this, this.onScrollFunc, [hScrollBar.value]); private onScrollFunc (value : number) { this.hScrollBar.value = value; }抬起时设置为null,就可以了 2019-02-20 1 0 分享 微博 QZONE 微信 qian 赞同来自: 禁止pane...
来源: Laya_社区 发布时间: 20180329
... aSong 赞同来自: 要射出的点进行以下处理之后就可以了 this.point = this.changeToClientWorld(this.point) //在showall模式下将屏幕坐标转换到client空间坐标,为射线检测偏差使用 public changeToClientWorld(input:Laya.Vector2):Laya.Vector2 { let ratioX = (input.x...
来源: Laya_社区 发布时间: 20180530
...代码 export default class TestView { constructor() { this.init(); } init() { Laya.stage.bgColor='#ffffff'; Laya.stage.addChild(new Laya.Image('comp/img/img1.png')); Laya.timer.once(1000, this, this.delayShow); } delaySho...
来源: Laya_社区 发布时间: 20230419
...as/build.atlas",type:Loader.ATLAS}) Laya.loader.load(assets,Handler.create(this,null),Handler.create(this,this.proces,null,false)); 第一次成功 当我第二次调用失败 资源not found 资源是不同的 2018-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...
来源: Laya_社区 发布时间: 20181106