大约有 914 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0095 秒)
Laya_社区(546) Laya2.0_示例(94) Laya_示例(90) Laya2.0_文档(79) Laya3.0_api(62) Laya3.0_文档(41) laya_api(1) Laya2.0_api(1)
...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
...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
...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
...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
...件会报错 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
...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
...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
....html 网上的这个方式试了,没用,按照网上说是没有设置width与height 但是这个宽和高通过getBounds取出来是0 2018-09-09 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 赵伟凡 ...
来源: Laya_社区 发布时间: 20180909
...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
... 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