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

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

3861. 怎么获取手机相册内容 [ 46%]

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

3862. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 46%]

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

3863. QQ小游戏开发者工具环境下,已经被本地缓存的图片的加载回调不触发的问题 [ 46%]

...问题出现了,Laya.loader.load("res/atlas/comp.json", Handler.create(this, onLoaded), null, Loader.ATLAS);这里的onLoaded函数不会被触发,导致后续界面不显示。如果点QQ小程序开发者工具里的清理缓存,界面又再次可以显示,再刷新的话,又不行。基...

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

3864. laya.utils.Pool_API3.0 [ 46%]

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

3865. 在unity场景中给球添加刚体跟弹力,unity中可以在掉落弹起来,导出到laya以后始终弹不起来 [ 46%]

...用,麻烦你再下载试一下看看 迎着风! • 2019-10-31 20:34 this.ballBody.restitution = 5;我试了试还说没反应,然后我又尝试去给他添加Rigidbody3D还是没有结果 Laya_Aaron • 2019-11-01 14:32 @迎着风!:改一下ls 文件里的弹力系数 迎着风! • 201...

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

3866. laya2.3微信开放域点发布后编译就会报错 [ 46%]

...下报错。 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

3867. 打包后启动游戏后报错 [ 46%]

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

3868. laya.d3.core.SimpleSkinnedMeshSprite3D_API3.0 [ 46%]

...器。功能同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

3869. Android替换游戏启动logo看不到设置的图片 [ 46%]

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

3870. 时间轴动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 46%]

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