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

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

291. [LayaAir3]LayaAir3.3使用Fairygui开发UI,滤镜效果对不上 [ 60%]

...ew = pkgs[0].createObject("View"); console.log(view); this.owner.addChild(view.displayObject); }); } 我提出的問題是,Fairygui編輯器和Laya編輯器,使用BlendMode和濾鏡的效果不相同。 格局豬 - 趙唐豬豬 • 2025-09-08 12:29 我重新描述問題 需求: 面板...

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

292. LayaAir2.6.0版阴影系统如何使用,请教请教! [ 59%]

...光: //添加方向光         this.m_light = this.m_scene3D.addChild(new Laya.DirectionLight()) as Laya.DirectionLight;         this.m_light.color = new Laya.Vector3(0.8, 0.8, 0.8);         this.m_light.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, ...

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

293. 使用HtmlDivElement取不到实际大小 [ 59%]

...ml } function createParagraph() { var p = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; var html = "<div>"; html += "<span color='#e3d26a'>使用</span>"; html += "<span style='color:#FFFFFF;font-weight:bold'>HTMLDivElement</...

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

294. 使用webgl之后toDataUrl返回黑色的图像 [ 59%]

...k); sp= new Sprite(); sp.name='base'; sp.loadImage("logo.png"); Laya.stage.addChild(sp); } private function onClick():void { var htmlsss:String=(Laya.stage.getChildAt(0) as Sprite).drawToCanvas(100,100,0,0).getCanvas().toDataURL(); var sp2:Sprite = new Sprite(); sp2.name='drawCanvas'; sp2.x = 300; s...

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

295. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 59%]

...Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img);   this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Stage   = Laya.Stage; var List    = Laya.List; var Handler = Laya.Handler; var WebG...

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

296. JS的WebGL模式下使用Laya.Video报跨域错误 [ 59%]

...s, function() { console.info(video.width + ',' + video.height); Laya.stage.addChild(video); video.play(); }); video.load(video_url); Laya版本是1.7.4Beta Chrome 58下运行报错   laya.device.js增加跨域属性后解决   附件 : --> 2017-05-08 添加评论 免费帖 --> 分享 微博 QZONE ...

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

297. ScrollRect设置会引起其他的UI资源无法正在显示 [ 58%]

... function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i++){ p = new Image("test/footprint.png"); p.pos(i...

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

298. 我在unity打开模型是有颜色的,但是在laya中打开是白色的 [ 58%]

...导出的场景。 var scene = Laya.Scene.load('h5/3333d.ls'); Laya.stage.addChild( scene );   附件 : --> 归档.zip 2017-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 qian 赞同来自: 你的模型 预...

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

299. Spine使用filters 无效 [ 58%]

...res/spine/pantheon-s.sk"); spine.pos(200,400); spine.scale(0.5,0.5); stage.addChild(spine); //由 20 个项目(排列成 4 x 5 矩阵)组成的数组,红色     var redMat =         [             1, 0, 0, 0, 0, //R             0, 0, 0, 0, 0, //G             0, 0, 0, 0, ...

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

300. input setforbidEdit is not a function [ 58%]

...ileSystemManager is not a function 官方视频教程中飞机大战 "this.addChild is not a function" api readFile success callback function undefined api readFile success callback function undefined 打地鼠发布成微信小游戏后提示gameThirdScriptError this.preinitialize is not a function...

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