大约有 3,979 项符合查询结果, 库内数据总量为 30,924 项。 (搜索耗时: 0.0063 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...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
...请: 与内容相关的链接 提交 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
...,用flashbuilder配置好加载图片显示第一步就不行了 var img:Sprite = new Sprite(); //添加到舞台 Laya.stage.addChild(img); //加载图片" img.loadImage("/res/atlas/game/bg....
来源: Laya_社区 发布时间: 20170307
...块文件,预加载造成了GPUMemory过高。 var tPath=this.mergePath(this._resPath,tTileSet.image); this._loader.load(tPath,/*laya.net.Loader.IMAGE*/"image",false); 看了文件,会把json的图像资源全部加载出来, 如果我只想load...
来源: Laya_社区 发布时间: 20191027
...r.create(this, (data)=>{ this.sp.graphics.drawTexture(this.sp.texture); var bounds = this.sp.getGraphicBounds(true); })); 这样绘制后,最后拿到的宽高就是图片实际的寛高
来源: Laya_社区 发布时间: 20181117
...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>&nbsp;"+vo.attValue+"<br>"; } describe.inn...
来源: Laya_社区 发布时间: 20171030
...影功能,就没有出现阴影效果。 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
官网的LayaRender无法开启角度指示器 var render = LayaRender.create( { engine: engine, container: gameWorld, width: stageWidth, height: stageHeight, options: { wireframes: true, showAngleIndicator: true //无法开启 } }); 哎,为什么你们习惯要开发者上传Demo给你们发...
来源: Laya_社区 发布时间: 20180120
...鼠标点击按钮切换注视目标。 ```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
...*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