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

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

251. 1.5版本:3D Camera无法使用? [ 76%]

...接 提交 1 个回复 183*****755 赞同来自: this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = (this.scene.addChild(new Laya.Camera(0, 1, 1000))) as Laya.BaseCamera; this.camera.transform.translate(new Vector3(0, 0, 500)); 这样用即可! 2016-10-17 0 0 分享 ...

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

252. hitTestPrior无效 [ 76%]

...wn); img.on(Laya.Event.MOUSE_DOWN, this, this.onImageMouseDown); viewStack.addChild(img);   然而不管设置是true还是false,都是子元素先检测到mousedown事件,请问是不是hitTestPrior无效? 2017-09-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

253. list里面可以加入多个view吗? [ 76%]

...r.ATLAS); } private function onLoaded():void { list=new List(); Laya.stage.addChild(list); list.itemRender=Item; list.repeatX=1; list.repeatY=6; list.x=((Laya.stage.width-Item.WID)/2); list.y=((Laya.stage.height-Item.HEI*list.repeatY)/2); list.vScrollBarSkin="comp/vscroll.png"; list.renderHandler=ne...

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

254. 关于mouseThrough设计原理问题[ 76%]

...Event.CLICK, null, function(e:Event):void{ trace("click a"); }) Laya.stage.addChild(a); var b:Sprite = new Sprite(); b.graphics.drawRect(0,0,200, 200, "#0000ff"); b.size(200, 200); b.pos(100, 100); b.mouseThrough = false; //b.on(Event.CLICK, null, function(e:Event):void{ trace("click b"); }); Laya.s...

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

255. 这样的panel请问如何实现比较好? [ 76%]

... var item = new Item(); item.pos(0, i * (item.height + 1)); this.container.addChild(item); } } }   3,加载资源,完成后再加载界面 import WebGL = Laya.WebGL; // 程序入口 class GameMain { constructor() { Laya.init(500, 1000, WebGL); Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; ...

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

256. canvas下资源清理的问题 [ 76%]

...    btn2.x = 150;                          Laya.stage.addChild(btn1);             Laya.stage.addChild(btn2);                          btn1.on(Event.CLICK,this,onClick);             btn2.on(Event.CLICK,this,onClick);                 ...

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

257. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 76%]

... //imgLove.pos(iRows*this._x + 120 , iColumns*this._y + 320); this.imageBg.addChild(imgLove); } }TypeError: node._setParent is not a function preload.js:55     at Image.__proto.addChild (file:///E:/laya/myLaya/myZootopia/bin/libs/laya.core.js:20925:9)     at LoveControl.createLoveArr (file:///E:...

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

258. IDE创建动画调用问题 [ 76%]

...= new Laya.Animation(); light.loadAnimation("ani/thunder.ani"); Laya.stage.addChild(light); light.play(0, true); 用light.frames获取结果为null,不行 2017-08-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

259. 3D模型加载出错 [ 76%]

...加载出错   //添加自定义模型         //this.box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1)));         Laya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(null, function(sp){         //Laya.Sprite...

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

260. sound manager在MOUSE_OVER事件中无法播放 [ 76%]

...e.height - soundButton.height) / 2;             Laya.stage.addChild(soundButton);              //创建一个Sprite充当音乐播放按钮             var musicButton: Sprite = this.createButton("播放音乐");             musicButton.x = ...

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