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

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

961. TiledMap显示不完整 [ 61%]

...的内容;但如果用tiledmap的mapSprite()获取tiledmap的sprite,再addChild到另外一个sprite下,这个sprite不能显示完整tiledmap的sprite的内容。 附件 : --> 2019-06-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

962. 陀螺仪与加速计(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 61%]

...FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height);  Laya.stage.addChild(this.info);  Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, onDeviceorientation); function onDeviceorientation(absolute, rotationInfo) { this.info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta...

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

963. Image不能清空图片吗? [ 60%]

...MakeMc){ //类型小图片 this.lastMakeMc = new Image(); this.collectUIMC.addChild(this.lastMakeMc); this.lastMakeMc.pos(123,68); this.lastMakeMc.size(32,32); }else{ this.lastMakeMc.skin = "face/type"+type+".png"; } if(type == -999){ this.lastMakeMc.dispose(); } 2018-06-23 添加评论 免费帖 --...

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

964. PointLight介绍(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 60%]

...性。 ```javascript //创建点光源 var pointLight:PointLight = scene.addChild(new PointLight()) as PointLight; //设置点光源位置 pointLight.transform.position = new Vector3(0.4, 0.4, 0.0); //设置点光源的范围 pointLight.range = 6.0; ``` **range** 为设置点光源的范围,相当...

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

965. HtmlDivElement的innerHTML属性BUG [ 60%]

...; htmlDiv.style.fontSize = 25; htmlDiv.style.color = "#ffffff"; Laya.stage.addChild(htmlDiv); htmlDiv.innerHTML = "<font color='#00ff00'>宝石1<br/>宝石2</font>";用了1.7.17版本测试,未解决,麻烦官方测试下。 附件 : --> Client.zip 2018-04-19 添加评论 免...

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

966. 超出文本区域的处理&滚动文本(JavaScript-LayaAir基础篇(JS)-文本) [ 60%]

..."; txt.size(300, 50); txt.fontSize = 20; txt.color = "#ffffff"; Laya.stage.addChild(txt); return txt; } })() ``` ![2](img/2.png) 可以看到3种方法的对文本处理的不同,每种处理都有各自的优缺点,性能比最高的还是hidden。 除了通过对文本区域设置overflow ,...

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

967. 加载的时候动画会卡 [ 60%]

...unction() {         this.loadLayer = new Lload();         this.big.addChild(this.loadLayer);         var imgArr = ;         imgArr.push({url:"cont/cpf1.jpg",type:Loader.IMAGE});         imgArr.push({url:"cont/cpr1.jpg",type:Loader.IMAGE});         imgArr.push({url:"cont/cps1...

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

968. 关于tiledmap的问题 [ 60%]

...注: 2 人 whaqzhzd • 2017-08-09 14:15 因为tiledmap是直接Laya.stage.addChild上去的,而不是由开发者传递一个Sprite进去,然后把tiledmap添加到该Sprite上。或者提供一个Hanbder回调让开发者自己去添加层级。这样不是很方便管理tiledmap的层级

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

969. 输入设备-地图 [ 60%]

...eateInfoText() { const Text = Laya.Text; infoText = new Text(); Laya.stage.addChild(infoText); infoText.fontSize = 50; infoText.color = "#FFFFFF"; infoText.size(Laya.stage.width, Laya.stage.height); } // 更新设备位置 updatePosition(p) { const Browser = Laya.Browser, BMap = Browser.window.BMap;...

来源: Laya2.0_示例 发布时间: 20251219

970. Effect材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 60%]

...&group=Material&name=EffectMaterialDemo)): ```typescript var earth = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere())) as Laya.MeshSprite3D; earth.transform.position = new Laya.Vector3(0, 0, 0); //创建EffectMaterial材质 var material = new Laya.EffectMaterial(); //加载地...

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