大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0069 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... 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
资源加载清除问题 Laya.loader.load(mapBit, Handler.create(this, onLoadCom)); 加载成功一个纹理后,用一个Sprite graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后...
来源: Laya_社区 发布时间: 20161230
... // 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
...机上 有时会发生异常 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
...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