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

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

11. 材质的加载(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 78%]

...质加载 BaseMaterial.load("res/skyBox2/skyBox2.lmat",Handler.create(this,function(mat:BaseMaterial):void { var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` ![](img/1.png)(图1...

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

12. Event触发不了 [ 78%]

...#000"); btn.pos(100, 200); btn.size(50,50); btn.on(Event.MOUSE_DOWN, this, function():void {console.log(1);}); btn.on换成Laya.stage.on是可以触发的,但是btn却触发不了。 麻烦解答,谢谢。 2017-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

13. 图片mask失效问题. [ 78%]

... photoimg.loadImage(imgn,0,0,500,500);    Laya.timer.once(1000, this, function():void{     maskimg.loadImage("http://img.diyphoto.cn/Mask/im ... ot%3B,0,0,500,500);         }); 延时加载  的效果. 模拟加载的东西很多的时候 2016-09-23 0 8 分享 微博 QZONE 微信 为...

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

14. 3d获取组件代码bug [ 77%]

... *@param components 组件输出队列。 */ __proto.getComponentsByType=function(type,components){ var index=this._componentsMap.indexOf(type); if (index===-1) components.length=0; //这里应该返回了!!!!!!!!!! var typeComponents=this._typeComponentsIndices[index]; var count=typeComponents.leng...

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

15. 微信关系链:LayaAir引擎针对开发数据域使用图集支持介绍 [ 75%]

...ESIZE:String = "sharedresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init():void { //接收主域透传的数据 if(MiniAdpter.isZiYu &&am...

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

16. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 75%]

...地图的div容器 ``` ### 二、接着是构造函数: ```java public function WatchPosition() { Laya.init(1, 1);   init();   // 使用高精度位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError)); ...

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

17. laya2.3图集含空白裁切后,锚点旋转bug,demo重现 [ 75%]

...  Laya.stage.addChild(sp3);         Laya.timer.frameLoop(2,null,function()             {                 sp3.rotation = sp3.rotation+10;             }         ); 2019-11-12 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个sprite ...

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

18. 使用百度地图显示当前位置(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 74%]

...在这里绑定了该函数的作用域。 ##### 2.1 init函数: ```java function init() { mapDiv = Laya.Browser.createElement("div"); Laya.Browser.document.body.appendChild(mapDiv); // 适应窗口尺寸 refit(); Laya.stage.on(Laya.Event.RESIZE, this, refit); // 初始化地图 map = new BMap.M...

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

19. 加载的时候动画会卡 [ 73%]

加载的时候动画会卡 上代码: _pro.startLoad = function() {         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",...

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

20. 3d项目base64 截图成绩有偏差 [ 73%]

...反过来刷了一遍。    this.an_img.on(Laya.Event.MOUSE_DOWN, this, function (): void {                 console.log("点击");                 var htmlCanvas:Laya.HTMLCanvas = Laya.stage.drawToCanvas(1334, 750, 0, 0);//把精灵绘制到canvas上面       ...

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