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

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

851. 请问3D平行光产生的投影 如何修改颜色深浅 [ 79%]

...淡一些       //添加方向光 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

852. Native端二维码的显示的解决办法 -分享 [ 79%]

... QRCodeJS在下方分享的有;   先生成二维码数据 var qrcode = new QRCode(-1, QRErrorCorrectLevel.H); qrcode.addData('http://www.baidu.com'); qrcode.make();生成的是一个数组数据,根据里面的数组,判断每个方格是否渲染,点线面的组成一个二维码。 var q...

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

853. 在List渲染的时候,在滚动一个list的时候,如何实现另一个list也跟着滚动,并且两个list同时滚动一模一样。 [ 79%]

... 要回复问题请先登录 发起人 AIQR2013 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 安装layaAirIDE2 ,跟着官网敲hello world 例子,...

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

854. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 78%]

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

855. android下layabox调用Laya.Texture2D.load报错 [ 78%]

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

856. Vector3 is not a constructor [ 78%]

...目前已经被锁定, 无法添加新回复 发起人 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

857. 用LayaAir引擎解析Tiled Map地图(JavaScript-2D进阶篇(JS)-扩展模块) [ 78%]

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

858. 动态加载的图片不响应按钮点击事件 [ 78%]

动态加载的图片不响应按钮点击事件 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

859. Laya.Byte使用getUint16读取错误 [ 78%]

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

860. 用tiledmap导出的json文件为何加载不成功? [ 78%]

...中的方法加载没效果?还是没有显示。。   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