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

大约有 1,169 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0051 秒)

711. 微信小游戏报错 the .lh file root type must be Scene [ 57%]

...at ResInfo.onLoaded (http://127.0.0.1:62629/game/code.js:12995:61) at EventHandler.__proto.runWith (http://127.0.0.1:62629/game/code.js:711:59) at ResInfo.__proto.event (http://127.0.0.1:62629/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:62629/game/code.js:13152:11) at Lo...

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

712. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 57%]

...eeDimen/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Handler.create(this, onComplete)); } private function onComplete():void { //记载场景 var scene:Scene3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //加载相机 var camera:Camera = scene.addChild(new Camera(0, 0.1, ...

来源: Laya2.0_文档 发布时间: 20210714

713. 微信小程序里加载json文件 [ 57%]

...小程序里加载json文件:   Laya.loader.load("json/dropData.json",Handler.create(this,readJsonFinish3) ,null,Loader.JSON );     然后报错:   排除法处理了下,发现是json里有中文的原因。这个微信小程序怎么读取有中文的配置的json啊? 附件 : --> 2018-...

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

714. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 57%]

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

715. 图片遮罩大小跟设置不一致 [ 57%]

...= Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL   = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH...

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

716. drawTexture的matrix参数是怎么用的 [ 57%]

...据子节点对象,获取子节点的索引位置。参数是什么 Laya.Handler.create 加载图片回调参数问题 Dispather.event参数传的是数组,为什么收到的参数却是个int类型? http 请求 once 的 回调参数,如何传递和接收? 点击按钮打开对话框的时...

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

717. 小白求助,关于时间轴动画如何设置播放一次后消失? [ 57%]

...置播放一次后消失? Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { var tl = new Laya.Animation(); tl.loadAnimation("democesi.ani"); Laya.stage.addChild(tl); tl.play(); tl.pos(302,650); } 2018-01-17 添加评论 免费帖 --> 分享 微博...

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

718. skydome可以替换贴图吗? [ 57%]

...ew SkyPanoramicMaterial();         Texture2D.load("res/jfb.jpg", Handler.create(null, function (tex: Texture2D) {             material.panoramicTexture = tex;             skymat.material = material;         })); 2020-03-19 0 0 分享 微博 QZONE 微...

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

719. Laya IDE横竖屏切换时,不断刷新 [ 57%]

...tage.screenMode = 'horizontal'; Laya.loader.load(['res/atlas/view.atlas'], Handler.create(this, initGame)); Laya.timer.frameOnce(1, this, function () { Laya.stage.on(Event.RESIZE, this, function () { window.location.reload(); }) }) 2018-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

720. 模型资源释放 [ 57%]

...放的资源配置表 Laya.loader.load([{url:assetsUrl,type:Loader.JSON}], Handler.create(this,onAssetsOK,[assetsUrl])); } /**加载资源释放表完成后**/ private function onAssetsOK(assetsUrl:String):void { //获取加载的数据(Json数组转化成数组) var arr:Array=Laya.loader.getRes...

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