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

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

891. 生成的粒子特效怎么设置colorComponentInter无效? [ 55%]

...adImage('res/jiezou/wenzi2.png'); Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } function onAssetsLoaded(settings) { settings.colorComponentInter = true; sp = new Particle2D(settings); sp.emitter.start(); sp.play(); sp.x = 90; sp.y = 55; this.add...

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

892. js中使用sharedMesh报错 [ 55%]

...plete (file:///E:/LayaWorkspace/javaScriptLaya/src/warehouse.js:129:52) at Handler.__proto.run (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:693:26) at ResInfo.onLoaded (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12657:28) at EventHandler.__proto.runWith (file:///...

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

893. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 55%]

...件由发布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); ....... ``` 在GameUI中使用我们的自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D...

来源: Laya2.0_文档 发布时间: 20210715

894. 求教 JS项目的Promise如何使用 [ 55%]

...调方法绘制图片并添加到舞台 Laya.loader.load(this.monkey2,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var img = new Laya.Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(this.monkey2),100,50); //添加到舞台 Laya.stage.ad...

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

895. 加载龙骨动画出报错Uncaught getUint16 error - Out of bounds [ 55%]

... 赞同来自: 龙印 已经解决:: Laya.loader.load("ani/jingbubeipi.sk",Handler.create(this,asd),null,Loader.BUFFER);  在预加载动画时这样在后面参数加上loader.buffer; 2018-09-13 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

896. 音频无法播放 [ 55%]

...播放 Laya.SoundManager.playMusic('res/sound/'+'fail'+'.wav',1, new Laya.Handler(null,function(){ alert('123') })); 在chrome下 提示图片这个警告,,,手机上也没有声音 附件 : --> 2018-04-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

897. laya.ui.Radio_API3.0 [ 55%]

...rarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY clickHandler components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea iconOffs...

来源: Laya3.0_api 发布时间: 20231115

898. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 55%]

...l; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/LayaScene_girl/girl.lh"); this.scene.addChild(this....

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

899. 关于stage的size问题 [ 55%]

...aya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(sprite); } 上面这段代码如果把Laya.stage.size这行的注释去掉...

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

900. Dialog的popupEffect是不是有bug [ 55%]

...566 赞同来自: 我也碰到这个问题了。 Dialog.manager.popupEffectHandler = Handler.create(this,(e)=>{                 var dialog:Dialog = <Dialog>e;                 dialog.y = - dialog.height;                 var yy:number = (Laya.st...

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