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

大约有 39 项符合查询结果, 库内数据总量为 30,979 项。 (搜索耗时: 0.0039 秒)

1. 3D场景中背景透明 [ 100%]

...类里,入口的Main已经有画布的初始化了,   第二,new Config3D,不是new Laya.Config3D,   你把你在chuanglian1.js里的这段删除 //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, config3D); Laya.stage.scaleMode = Lay...

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

2. 【简单跑酷--JS版】---Lv.6 终篇 [ 99%]

....autoSize = true; //初始化的时候将坐标放到屏幕右边 this.x = Config.GameWidth; //y坐标取一个随机值 为什么是32 因为我们的整个素材是 32 * 20 拼起来的 this.y = 32 * 6 + 32 * parseInt(8 * Math.random()); if(this.bg == null){ //贴图纹理 this.bgTexture = Laya.lo...

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

3. Shader预编译解决方案 [ 89%]

...Shader3D._getNamesByDefineData(compileDefine, deugDefines);     if (!Config3D._config._multiLighting) {         var index = deugDefines.indexOf("LEGACYSINGLELIGHTING");         (index !== -1) && (deugDefines.splice(index, 1));     }             ...

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

4. Laya怎么使用雪碧图(spritesheet)? [ 89%]

...的h5项目是另建一个文档作为入口,所以没加宏SpriteSheet.config(config.version, "/sheet", "assets/ui/"); var a:Array = config.assets;//["assets/ui/xxx.swf",...] var b:Array = ; for (var i:int = 0; i < a.length; i++) { var s:String = a; var u:String = s.substr(0, s.length - 4);//...

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

5. app打包资源加载不完全 [ 88%]

...资源 代码如下: _gameResCfgList 是一组资源类似    { url: CONFIG_MONSTER_LEV, type: Laya.Loader.JSON },  { url: CONFIG_TERRAIN, type: Laya.Loader.JSON },  { url: CONFIG_FORMATION_TEMPLATE, type: Laya.Loader.JSON },  { url: CONFIG_MOVE_PATH, type: Laya.Loader.JSON },  { url: CONFI...

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

6. 自动旋转后残影 [ 88%]

...  protected var _tip:Sprite; public function testVH() { IEventDispatcher; Config.isAlpha = true; Config.isAntialias = true; Laya.init(0, 0,true); Laya.stage.bgColor = "#000000"; ChangeSize(); Laya.timer.once(1000,this,function start():void{ Laya.stage.on(Event.RESIZE,this,onResize); }); }   protec...

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

7. Typescript里全局对象Config未定义 [ 88%]

Typescript里全局对象Config未定义 Config未定义,导致无法编译 附件 : --> 2016-07-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 您好,这个问题的话...

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

8. LAYA js 1.7.12 Tween 使用时回调时 core报错 [ 87%]

...rcuore 赞同来自: this.body = new Laya.Animation(); this.body.loadAtlas(config[this.type].imgBang, Laya.Handler.create(this, this.onLoad)); this.body.width = config[this.type].width this.body.height = config[this.type].height onLoad(){ Tween.to(this.body, { x: (config[this.type].width / 2) + 10, ...

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

9. 部署web后无法请求访问HTTP API接口数据,调试模式下可以访问获取 [ 86%]

...以下代码就可以了         //初始化                 _config = new HttpSelfHostConfiguration(url);                 //API路由                 _config.Routes.MapHttpRoute(                     "API Default",                     "api/{controller...

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

10. Cannot read property 'rayCast' of undefined [ 82%]

....Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, config3D); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //2.设置舞台背景色为空 Laya.stage.bg...

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