大约有 988 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)
Laya_社区(687) Laya2.0_文档(163) Laya_示例(51) Laya2.0_示例(43) Laya3.0_api(20) Laya3.0_文档(20) laya_api(2) Laya2.0_api(2)
...ion;Laya.Tween.to(box.potOld,{ x:1 ,y:2 ,update:new Laya.Handler(box,function(){ this.transform.position = this.potOld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){ console.log("complete"); }),ConstValue.animation...
来源: Laya_社区 发布时间: 20170905
...vas; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaAirDemo { private var img:Image; public function LayaAirDemo() { Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; L...
来源: Laya_社区 发布时间: 20170704
... this._tMap.createMap("../bin/map/orthogonal-outside.json",viewRect,Laya.Handler.create(this,this.onComplete)); 附件 : --> 2020-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 157*****593 赞同来...
来源: Laya_社区 发布时间: 20200815
...his.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() function onLoaded() { var cMask = new maskDemoUI() Laya...
来源: Laya_社区 发布时间: 20180810
...先声明一个预设变量 {Laya.loader.create("prefab/预设名字.json",Handler.create(this,onComplete)); } private function onComplete(obj:Object):Void{ 一个预设变量.json = ojb 一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一个预设变量.create, this.一个预设...
来源: Laya2.0_文档 发布时间: 20210714
... = Laya.Button; import Clip = Laya.Clip; import Image = Laya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "res/ui/button-7.png"; private clipSkin: string = "res/ui/num0-9.png"; private bgSkin: string = "res/ui/coutDown.png"; pri...
来源: Laya2.0_文档 发布时间: 20210714
...ctangle(0,0,320,160); tMap.createMap("res/TileMap/Test.json",viewRect,Laya.Handler.create(this,onCreateMap)); var point =0; function onCreateMap(){ this.role = tMap.getLayerObject("role","player"); console.log(this.role.x,this.role.y); } 附件 : --> 2017-11-24 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20171124
...是我自己慢慢研究的 Laya.loader.create([{url:"land/main.lh"}],Laya.Handler.create(this,this.onCreateComplete)); 再单独写个这个 onCreateComplete(){ var land = Laya.loader.getRes("land/main.lh"); this.scene.addChild(land); var camera = land.getChildByName("Camera"); camera.addCompone...
来源: Laya_社区 发布时间: 20180807
...图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域 Laya.MiniAdpter.sendJsonDataToDat...
来源: Laya2.0_文档 发布时间: 20210715
...git上面的资源 Laya.loader.create([ "res/u3d/grid/plane.lh", ], Laya.Handler.create(this, this.onPlaneComplete)); 附件 : --> 2019-05-15 添加评论 已悬赏15元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 sand 赞同来...
来源: Laya_社区 发布时间: 20190515