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

大约有 2,984 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0288 秒)

661. 小游戏 使用3D 天空盒 真机无法显示 [ 71%]

...new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load("res/models/skyhome.jpg");小游戏 使用3D  天空盒 真机无法显示 就这三行代码 PC开发工具正常 真机测试 天空盒不显示 谢谢 麻烦看看呗 2018-04-08 添加评论 免费帖 --> 分享 微...

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

662. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 71%]

...scene); //方法一:直接异步加载 // var mesh:Laya.Mesh = Laya.Mesh.load("LayaScene_01/Assets/model/loveScene_jianzhu.lm"); // var meshSprite3D:Laya.MeshSprite3D = new Laya.MeshSprite3D(mesh); //方法二:预加载,创建为Sprite3D类型 Laya.loader.create("LayaScene_01/Assets/model/love...

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

663. 微信小游戏的相同的音第二次播不出来 [ 71%]

...持声音预加载,声音的播放是即用即加载的。所以用Laya.load.load预加载声音是无效的。 Jacy • 2018-05-21 23:05 @一点一滴:那要怎么处理同样一个音播放多次的情况呢?

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

664. Sprite-切换纹理 [ 71%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load([texture1, texture2], Handler.create(this, onAssetsLoaded)); })(); function onAssetsLoaded() { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2);...

来源: Laya_示例 发布时间: 20251209

665. discard property,please use transform's property instead [ 71%]

...耗性能         directionLight.shadowPCFType = 3;         Laya.loader.create([             "res/plane.lh",             "res/LayaMonkey.lh"         ], Laya.Handler.create(this, onComplete));         var _quaternion = new Laya.Quaternion();         Laya.timer.frameLoo...

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

666. Texture自动恢复还是存在另外的问题 [ 71%]

...itmap || this._bitmap.destroyed)&& url){             Laya.loader.load(url,Handler.create(this,function(bitmap){                 _$this._bitmap=bitmap;             }),null,"htmlimage",1,false,null,true);         }     }   Laya.loader.load的cache参数...

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

667. image组件加载完成调度事件没反应? [ 71%]

...事件没反应? var dialog:Image = new Image(picAy[i]); dialog.on(Event.LOADED,this,onLoaded) private function onLoaded(e:*=null):void{ trace(2) } 这代码有什么问题?不调度onLoaded函数,图片显示正常 2016-10-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

668. 预加载音频文件遇到的问题 [ 71%]

...载音频的代码(JS飞机大战示例), //加载声音资源 Laya.loader.load("res/sound/bloodstream_bg.mp3", Laya.Handler.create(this, onLoadedSound), null, Laya.Loader.SOUND); // })(); function onLoadedSound(){ Laya.SoundManager.playMusic("res/sound/bloodstream_bg.mp3", 0, Laya.Handler.cre...

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

669. Sprite-遮罩-放大镜 [ 71%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load("../../res/bg2.png", Handler.create(this, setup)); })(); function setup() { var bg = new Sprite(); bg.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg); bg2 = new Sprite(); bg2.loadImage("../../res/bg2.png")...

来源: Laya_示例 发布时间: 20251209

670. 场景本身有光照图,我替换光照图不起作用 [ 71%]

...图,我替换光照图不起作用 var mylightmap = new Laya.Texture2D.load("dimian02.jpg"); var mylightmaps = [mylightmap]; scene.setlightmaps(mylightmaps); 2017-06-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个...

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