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

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

3011. 有没有SoundChannel的示例? [ 54%]

...l的示例? SoundManager.playSound(_url, _loop, new Handler(this, _fn)); var channel:SoundChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isStoped){ chan...

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

3012. 关于Dialog的显示层级问题 [ 54%]

...请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: var ccc:CCCView=new CCCView(); ccc.popup(); sp.addChild(ccc); Laya.stage.addChild(ccc);把dialog放置到一个容器内,通过Laya.stage.addChild添加dialog到舞台,可以避免层级遮挡的问题 2017-01-05 0 1 分...

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

3013. 新手,用flashbuilder配置好加载图片显示第一步就不行了 [ 54%]

...,用flashbuilder配置好加载图片显示第一步就不行了     var img:Sprite = new Sprite();                       //添加到舞台             Laya.stage.addChild(img);             //加载图片"             img.loadImage("/res/atlas/game/bg....

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

3014. Laya.loader.load GPUMemory如何不增加 [ 54%]

...块文件,预加载造成了GPUMemory过高。               var tPath=this.mergePath(this._resPath,tTileSet.image);             this._loader.load(tPath,/*laya.net.Loader.IMAGE*/"image",false); 看了文件,会把json的图像资源全部加载出来,   如果我只想load...

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

3015. 在Laya2上 getGraphicBounds获取失败 [ 54%]

...r.create(this, (data)=>{ this.sp.graphics.drawTexture(this.sp.texture); var bounds = this.sp.getGraphicBounds(true); })); 这样绘制后,最后拿到的宽高就是图片实际的寛高

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

3016. 更改innerHTML字体大小失败 [ 54%]

...o.group == GroupType.FollowerEquip || bagVo.group == GroupType.Equip){ for(var i:int=0;i<len;i++){ vo=bagVo.attr[i]; if(vo.attValue==0) continue; attrStr+="<font size='99999' color='#b031d5'>"+AttrNameCode.toName(vo.attType)+"</font> "+vo.attValue+"<br>"; } describe.inn...

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

3017. 2.8.0上默认模型不能产生和接受阴影 [ 54%]

...影功能,就没有出现阴影效果。 2.8.0设置阴影的代码: var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Laya.Vector...

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

3018. 官网的LayaRender无法开启角度指示器 [ 54%]

官网的LayaRender无法开启角度指示器 var render = LayaRender.create( { engine: engine, container: gameWorld, width: stageWidth, height: stageHeight, options: { wireframes: true, showAngleIndicator: true //无法开启 } });   哎,为什么你们习惯要开发者上传Demo给你们发...

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

3019. 摄像机捕捉目标(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 54%]

...鼠标点击按钮切换注视目标。 ```typescript //up向量 private var _up:Vector3 = new Vector3(0, 1, 0); ``` ```typescript //点击事件 changeActionButton.on(Event.CLICK, this, function():void{ index++; if (index % 3 === 1 ){ //摄像机捕捉模型目标 camera.transform.lookAt(box.transf...

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

3020. 3dsprite模型的隐藏与active [ 54%]

...*590 可以修改材质的渲染模式跟反射率,示例代码如下: var material = meshSprite.meshRender.sharedMaterial; material.albedo = new  Vector4(1.0,1.0,1.0,0.0); material.renderMode = 5; 2017-06-19 1 1 分享 微博 QZONE 微信 186*****590 赞同来自: 怎么说问题已收到,...

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