大约有 1,301 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
Laya_社区(739) Laya2.0_文档(164) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(27)
...调方法绘制图片并添加到舞台 Laya.loader.load(this.monkey2,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var img = new Laya.Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(this.monkey2),100,50); //添加到舞台 Laya.stage.ad...
来源: Laya_社区 发布时间: 20170825
...件由发布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); ....... ``` 在GameUI中使用我们的自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D...
来源: Laya2.0_文档 发布时间: 20210715
... 赞同来自: 龙印 已经解决:: Laya.loader.load("ani/jingbubeipi.sk",Handler.create(this,asd),null,Loader.BUFFER); 在预加载动画时这样在后面参数加上loader.buffer; 2018-09-13 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...
来源: Laya_社区 发布时间: 20180913
...播放 Laya.SoundManager.playMusic('res/sound/'+'fail'+'.wav',1, new Laya.Handler(null,function(){ alert('123') })); 在chrome下 提示图片这个警告,,,手机上也没有声音 附件 : --> 2018-04-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20180403
...rarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY clickHandler components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea iconOffs...
来源: Laya3.0_api 发布时间: 20231115
...l; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/LayaScene_girl/girl.lh"); this.scene.addChild(this....
来源: Laya_社区 发布时间: 20180307
...aya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(sprite); } 上面这段代码如果把Laya.stage.size这行的注释去掉...
来源: Laya_社区 发布时间: 20170803
...566 赞同来自: 我也碰到这个问题了。 Dialog.manager.popupEffectHandler = Handler.create(this,(e)=>{ var dialog:Dialog = <Dialog>e; dialog.y = - dialog.height; var yy:number = (Laya.st...
来源: Laya_社区 发布时间: 20170510
... } Laya.loader.create(sceneUrl,new Laya.Handler(this,completeFunc)); 附件 : --> scene1.zip 2019-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回...
来源: Laya_社区 发布时间: 20191012
...先声明一个预设变量{Laya.loader.create("prefab/预设名字.json",Handler.create(this,onComplete));}private function onComplete(obj:Object):Void{一个预设变量.json = ojb一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一个预设变量.create, this.一个预设变...
来源: Laya_社区 发布时间: 20200104