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

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

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

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

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

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

1823. 关于禁止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

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

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

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

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

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

1827. 资源加载清除问题 [ 76%]

资源加载清除问题 Laya.loader.load(mapBit, Handler.create(this, onLoadCom)); 加载成功一个纹理后,用一个Sprite  graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后...

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

1828. 蒙皮动画挂点应用 [ 76%]

... // animationNodeTemp.addChild(effect); body.addComponent(SkinAnimations); this.skinAnimation = body.getComponentByType(SkinAnimations) as SkinAnimations; this.skinAnimation._initialize(body); // var tempet:AnimationTemplet = new AnimationTemplet(); var tempet:AnimationTemplet = AnimationTemplet.loa...

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

1829. 有没有Loader预加载 相关的注意事项或者文档 在手机上问题有点多 [ 76%]

...机上 有时会发生异常 Laya.loader.load(skins, Laya.Handler.create(this, fGameLoad), Laya.Handler.create(this, onLoading, null, false), null, 1, true, sGameMark, false); Laya.loader.on(Event.ERROR, this, onError); 预加载资源添加了完成 进度 和失败监听  在手机上有时加载...

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

1830. 预设/场景的导出(JavaScript-3D基础(JS)-LayaAir3D之3D场景可视化编辑) [ 76%]

...s GameUI extends Laya.Scene { constructor(){ super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //加载场景 Laya.Scene3D.load('LayaScene_test/Conventional/test.ls',Laya.Handler.create(this,this.onComplete)) } /** * 加载完成 */ onComplete(scene){ // 将场景加到舞台上 ...

来源: Laya2.0_文档 发布时间: 20210715