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

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

1821. [LayaAir3]LayaAir3.3使用Fairygui开发UI,滤镜效果对不上 [ 76%]

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

1822. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 76%]

...; //创建动画模板 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

1823. 调用Sprite的drawToCanvas怎么返回的是uint8array [ 76%]

...         {                          var _canvas:* =this.drawToCanvas(this.width,this.height,0,0);             var base64:*  = _canvas._canvas.source.toDataURL();                         return base64;          } 附件 : --> 2017-04-01 添...

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

1824. 加载模型后如何取得在Unity的Transform.Rotation属性 [ 76%]

...位置(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

1825. app构建后在真机中运行报错 [ 76%]

...     function Prefab(){         /**@private */         this.json=null;     }      __class(Prefab,'laya.components.Prefab');     var __proto=Prefab.prototype;     /**     *通过预制创建实例     */     __proto.create=function(){         i...

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

1826. Tween回调方法里如何带参数? [ 76%]

...参数? 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

1827. 关于禁止panel的滑动事件 [ 76%]

...办法 鼠标按下时设置 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

1828. 射线检测有偏差 [ 76%]

... aSong 赞同来自: 要射出的点进行以下处理之后就可以了 this.point = this.changeToClientWorld(this.point) //在showall模式下将屏幕坐标转换到client空间坐标,为射线检测偏差使用 public changeToClientWorld(input:Laya.Vector2):Laya.Vector2 { let ratioX = (input.x...

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

1829. drawToCanvas转出图片与游戏内显示颜色差距过大 [ 76%]

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

1830. ts 空项目 版本1.7.20 下的load 调用2次 第二次 失效 [ 76%]

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