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

大约有 1,326 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0052 秒)

761. 在App上的iframe srcdoc属性显示不出来 [ 59%]

...tml页面,你可以试下: var p = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "../../res/html/test.html"; p.y = 200;

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

762. layair3d怎么建立个平面 然后贴图 [ 59%]

... 提交 1 个回复 Laya_Xq 赞同来自: var Plane:MeshSprite3D = scene.addChild(new MeshSprite3D( new PlaneMesh())) as MeshSprite3D;             Plane.transform.rotate(new Vector3(0,45,0),false,false);             var material:StandardMaterial = new StandardMaterial();   ...

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

763. ui渲染顺序的问题 [ 59%]

...代码:         const tv = new ui.tvUI();         Laya.stage.addChild(tv);         [tv.a.zOrder, tv.b.zOrder] = [tv.b.zOrder, tv.a.zOrder];         tv.updateZOrder();   但一点用都没有,我该怎么在程序里,把两个兄弟控件的渲染顺序倒过来啊? 2...

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

764. 绘制平明问题 [ 59%]

...       var canvas: Sprite = new Sprite();             Laya.stage.addChild(canvas);             var path: Array<number> = [];             path.push(0, -130);             path.push(33, -33);             path.push(137, -30);             path.push(55, 32);  ...

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

765. Text 居中 搭配 Tween 显示结果有问题。 [ 59%]

... txt.height = 600; txt.align = "center"; txt.valign = "middle"; Laya.stage.addChild(txt); Laya.Tween.to(txt, { scaleX:2, scaleY:2, }, 1000, Laya.Ease.elasticOut,null,1000);  画布800x600,在屏幕正中间显示一行字,通过缓动放大倍数到2倍,不改变位置,结果发现缓动把位置...

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

766. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 59%]

...rite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); sp.size(200,300); sp.pivot(sp.width/2,sp.height/2); sp.pos(200,200); Laya.timer.frameLoop(1,this,onLoopRotation,[sp]); } private function onLoopRotation(sp:Sprite):void { sp.rotation++; } } } 2017-09-05 0 0 分...

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

767. "Laya.Scene.load is not a function" [ 59%]

...eError: tex.once is not a function 官方视频教程中飞机大战 "this.addChild is not a function" laya 2.0 微信小游戏排行榜提示wx.getFileSystemManager is not a function 问题状态 最新活动: 2017-09-29 19:16 浏览: 1077 关注: 2 人

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

768. 背景加载不进来 [ 59%]

...不过高度很小,可看成一个平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(new BoxMesh(4,4,0.001))) as MeshSprite3D; var material:StandardMaterial = new StandardMaterial(); material.diffuseTexture = Texture2D.load("res/threeDimen/layabox.png"); plane.meshRender.material = ma...

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

769. 加载html的问题 [ 59%]

...载html文件: var p = new laya.html.dom.HTMLIframeElement(); Laya.stage.addChild(p); p.width = screenWidth; p.height = screenHeight; p.href = "https://www.baidu.com/index.html"; 这样写怎么报错了:gameThirdScriptError undefined;at api request success callback function undefined 说没有...

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

770. 设置半透遮罩层后,无法屏蔽穿透点击事件 [ 59%]

..., Laya.stage.height, "#000000"); maskArea.mouseThrough = false; Laya.stage.addChild(maskArea); 2018-09-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 hj 赞同来自: 你添加一个size大小试试 2018-09-11 ...

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