大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0061 秒)
Laya_社区(3324) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...ins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里...
来源: Laya_社区 发布时间: 20180529
.../PangZi-Take 001.lani",]; Laya.loader.create(resource, Laya.Handler.create(this, this.onPreLoadFinish)); } onPreLoadFinish() { //初始化3D场景 _scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //获取相机 var camera = _scene.getChildByName("M...
来源: Laya2.0_文档 发布时间: 20210715
...问题出现了,Laya.loader.load("res/atlas/comp.json", Handler.create(this, onLoaded), null, Loader.ATLAS);这里的onLoaded函数不会被触发,导致后续界面不显示。如果点QQ小程序开发者工具里的清理缓存,界面又再次可以显示,再刷新的话,又不行。基...
来源: Laya_社区 发布时间: 20191017
...n 用于创建该类型对象的方法。 Default value caller: any = null this对象 Returns any 此类型标识的一个对象。 Static getPoolBySign getPoolBySign(sign: string): any[] Defined in laya/utils/Pool.ts:18 根据对象类型标识字符,获取对象池。 Parameters sign: string 对...
来源: Laya3.0_api 发布时间: 20231115
...用,麻烦你再下载试一下看看 迎着风! • 2019-10-31 20:34 this.ballBody.restitution = 5;我试了试还说没反应,然后我又尝试去给他添加Rigidbody3D还是没有结果 Laya_Aaron • 2019-11-01 14:32 @迎着风!:改一下ls 文件里的弹力系数 迎着风! • 201...
来源: Laya_社区 发布时间: 20191031
...下报错。 Incompatible tsconfig option. Module resolves to 'CommonJS'. This is incompatible with rollup, please use 'module: "ES2015"' or 'module: "ESNext"'. 附件 : --> PigGameOpenData.zip 2019-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20191220
... public function send(type:String,url:String,callbackName:String):void { this.type = type; //发送请求 var script:* = Browser.createElement("script"); script.id = "serverlist"; Browser.document.head.appendChild(script); script.src = url; script.type = "get"; Browser.window[callbackName] = callbac...
来源: Laya_社区 发布时间: 20180209
...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from RenderableSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(n...
来源: Laya3.0_api 发布时间: 20231115
...er.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); __JS__("if(window.conch)") { dd=__JS__("window.loadingView"); dd.loading(100); } }...
来源: Laya_社区 发布时间: 20160918
...onLoad回调方法 Laya.loader.load("res/atlas/ui.atlas", Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```java //创建一个Animation实例 var tl:Animation = new Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` 第三步:添...
来源: Laya2.0_文档 发布时间: 20210715