大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0149 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...淡一些 //添加方向光 this.Light = this.mainscene.addChild(new Laya.DirectionLight()); this.Light.color = new Laya.Vector3(0.7, 0.7, 0.7); this.Light.direction = new Laya.Vector3(-1.3, -1.5, -1.6); // shadow this.Light.shadow = true; //产生投影的范围(如过小将不会产生...
来源: Laya_社区 发布时间: 20181016
... QRCodeJS在下方分享的有; 先生成二维码数据 var qrcode = new QRCode(-1, QRErrorCorrectLevel.H); qrcode.addData('http://www.baidu.com'); qrcode.make();生成的是一个数组数据,根据里面的数组,判断每个方格是否渲染,点线面的组成一个二维码。 var q...
来源: Laya_社区 发布时间: 20191104
... 要回复问题请先登录 发起人 AIQR2013 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 安装layaAirIDE2 ,跟着官网敲hello world 例子,...
来源: Laya_社区 发布时间: 20180515
...nd.prototype; // 初始化 _proto.init = function(){ // 球体 this.ball = new Sprite(); // 城堡 this.tower = new Sprite(); // 飞艇 this.aeroboat = new Sprite(); // 山 this.mountain = new Sprite(); // 雕像 this.statue = new Sprite(); // 守护神 this.angel = new Sprite(); // 加载主体的...
来源: Laya_社区 发布时间: 20170720
...ion (name) { if (undefined == D3Helper.materialDic[name]) { var material = new Laya.StandardMaterial(); D3Helper.materialDic[name] = material; [b]var testTexture = Laya.Texture2D.load(name);[/b] material.diffuseTexture = testTexture; var transformUV = new Laya.TransformUV(); transformUV.tiling = new...
来源: Laya_社区 发布时间: 20180206
...目前已经被锁定, 无法添加新回复 发起人 popo 相关问题 new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor Laya.GlowFilter is not a constructor 使用GlowFilter的时候报错: GlowFilter is not a constructor 聊天消息对话框中new一个HTMLDivElement 报错...
来源: Laya_社区 发布时间: 20180319
....width,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("res/TiledMap/orthogonal.json",viewRect); `...
来源: Laya2.0_文档 发布时间: 20210715
动态加载的图片不响应按钮点击事件 var imgURL:URLRequest = new URLRequest(); imgURL.url="res/data/image/522.png"; var imgLoader:Loader = new Loader(); imgLoader.load(imgURL); imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, finished); function finished(evt:Event):void { va...
来源: Laya_社区 发布时间: 20170321
Laya.Byte使用getUint16读取错误 var bytes1 = new Laya.Byte([0,8]); console.log('++',bytes1.getUint8(),bytes1.getUint8()); var bytes2 = new Laya.Byte([0,8]); console.log('++',bytes2.getUint16()); var bytes3 = new Laya.Byte([0,8,0,0]); console.log('++',bytes3.getUint32()); 采用上面测试...
来源: Laya_社区 发布时间: 20180625
...中的方法加载没效果?还是没有显示。。 var tiledMap = new Laya.TiledMap(); tiledMap.createMap("map/map.json",new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), new Handler(this, completeHandler)); function completeHandler(params) { console.log("brj laya h5 加载完成..");...
来源: Laya_社区 发布时间: 20170918