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

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

571. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 66%]

...eo.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.width = videoTexture.video.videoWidth; image.height = vide...

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

572. Laya2.2问题,有没有遇到的? [ 66%]

...r() { } static init() { var reg = Laya.ClassUtils.regClass; } } GameConfig.width = 640; GameConfig.height = 1136; GameConfig.scaleMode = "fixedwidth"; GameConfig.screenMode = "none"; GameConfig.alignV = "top"; GameConfig.alignH = "left"; GameConfig.startScene = ""; GameConfig.sceneRoot = ""; GameCon...

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

573. 树状列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 66%]

...ee.xml = new Laya.XML(treeData); tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; tree.bgColor = "#d25454"; this.owner.addChild(tree); } } class Item extends Laya.Box { constructor() { super(); this.right = 0; this.left = 0; var selec...

来源: Laya3.0_文档 发布时间: 20251010

574. Cannot read property 'toDefault' of undefined报错是什么原因 [ 66%]

...HADING; Laya.stage.addChild(new MousePickingScene()); // Laya.init(Browser.width, Browser.height); // Laya.stage.scaleMode = Stage.SCALE_NOSCALE; infoText = "距离:null"; mySwitch = true; target = new BMap.Point(113.392307, 23.062487); createDom(); initMap(); createButton(); var successHandler = ...

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

575. IOS真机下监听MOUSE_MOVE事件会报错 [ 66%]

...件会报错 var test = new Laya.Image('img/icon/face.png'); test.x = this.width / 2; test.y = this.height / 2; this.addChild(test); test.on(Laya.Event.MOUSE_MOVE, this, (e) => { console.log(e); }); 监听mouse_move事件后,手指在test上滑动,会报错:   附件 : --> 2017-08-06 添...

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

576. 这样的panel请问如何实现比较好? [ 66%]

...Laya.init(500, 1000, WebGL); Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATLAS);  } } new GameMain();   Test...

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

577. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 66%]

...rivate function createGridFromAStarMap(texture:Texture):Array { var textureWidth:int = texture.width; var textureHeight:int = texture.height; //读取图片像素 var pixelsInfo:Uint8Array = texture.getPixels(); var aStarArr:Array = new Array(); var index:int = 0; //像素值为黑色不可通行,...

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

578. 骨骼动画如何响应点击事件? [ 66%]

....html 网上的这个方式试了,没用,按照网上说是没有设置width与height 但是这个宽和高通过getBounds取出来是0 2018-09-09 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 赵伟凡 ...

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

579. 微信小游戏加载资源问题 [ 66%]

...r ts = Laya.Laya.stage._canvasTransform.identity(); ts.scale((Laya.Browser.width / Laya.Render.canvas.width / Laya.Browser.pixelRatio), Laya.Browser.height / Laya.Render.canvas.height / Laya.Browser.pixelRatio); } static wxinputFocus(e) { var _inputTarget = Laya.Input['inputElement'].target; if (_in...

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

580. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 66%]

...         partIns.play();          partIns.x = Laya.stage.width / 2;          partIns.y = Laya.stage.height / 2;     }        报错如下: ReferenceError: Loader is not defined preload.js:55     at LoveView.onEnable (file:///D:/laya/myLaya/myZootopia/bin/js/bund...

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