大约有 149 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0078 秒)
Laya_社区(94) Laya3.0_api(22) Laya2.0_文档(11) Laya2.0_示例(6) Laya_示例(6) Laya3.0_文档(4) laya_api(3) Laya2.0_api(3)
...idth, Laya.Browser.height, Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect = new Laya.Rectangle(0, 0, Laya.Browser.width, Laya.Browser.height); //创建TiledMap地图 this.tMap.createMap("./map/desert.json", vie...
来源: Laya_社区 发布时间: 20190321
...了各自的ui.xxxUI 2.新建了个场景添加到B页面 this.scene = new Laya.Scene(); this.addChild(this.scene); 3.新建模型,并且添加B页面的3D场景中 var map: Laya.Sprite3D = Laya.Sprite3D.load("cj/cj.lh"); this.scene.addChild(map); 4.切换页面 private playGame(): void { Laya...
来源: Laya_社区 发布时间: 20180411
...te onError(err: String): void { console.log("加载失败: " + err); } } } new laya.Loader_ProgressAndErrorHandle();package { import laya.events.Event; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Loader_ProgressAndErrorHandle { public function Loader...
来源: Laya_示例 发布时间: 20251130
... } tex = new Texture2D(0, 0, format, false, false); tex.wrapModeU = exports.WarpMode.Clamp; tex.wrapModeV = exports.WarpMode.Clamp; ...
来源: Laya_社区 发布时间: 20201130
...te的源代码: __proto.getDrawSprite=function(gridX,gridY){ var tSprite=new GridSprite(); tSprite.relativeX=gridX *this._map.gridWidth; tSprite.relativeY=gridY *this._map.gridHeight; tSprite.initData(this._map); this._gridSpriteArray.push(tSprite); return tSprite; }这个根本是新建一个Grid...
来源: Laya_社区 发布时间: 20161228
...pLeft_Smile.png"], ActionType.JUMP_LEFT); // 创建动画 this.animation = new Laya.Animation(); this.animation.interval = 150; this.animation.play(0, true, ActionType.MOVE_RIGHT); this.addChild(this.animation); 由于动画不能设置锚点,我想设置动画图片宽度/2为轴心点pivotX...
来源: Laya_社区 发布时间: 20170119
...前的版本中暂不支持。 比如以下代码: var map:BitmapData = new BitmapData(width * scale, height * scale, false); map.perlinNoise(20*scale, 20*scale, 3, 5, false, true); var texture:Texture = Texture.fromBitmapData(map, false, false, scale); 用到了BitmapData的perlinNoise接口,...
来源: Laya_社区 发布时间: 20151208
...载呢? IDE1.7.8 json图集加载问题 LayaAir 库文件加载速度慢 new Laya.Sprite();绘制图形以后,怎么删除释放资源? unity到导出场景加载时抛异常,不知所措 分享:LayaAir下如何获取图集下的小图资源? 微信小游戏与加载图片时不会触发...
来源: Laya_社区 发布时间: 20190305
...出的文件行号不能智能识别。 Error: JJ Main.ts:18 at new Main (file:///C:/LAYABOX/test2004/bin/js/bundle.js:24:17) at Object.1../MyScene (file:///C:/LAYABOX/test2004/bin/js/bundle.js:39:1) at o (file:///C:/LAYABOX/test2004/bin/js/bundle.js:11:265) at r (file:///...
来源: Laya_社区 发布时间: 20181105
...大神指点 var HTMLIframeElement = Laya.HTMLIframeElement; var iHtml = new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href="http://www.baidu.com"; 一启动运行就现以下错误 Error processing "variables": TypeError: Cannot read property 'length' of undefined at trimProperty (d...
来源: Laya_社区 发布时间: 20171203