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

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

1051. Unity导出粒子特效,到laya变成纯黑色 [ 63%]

...nventional/GameScene.lh", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(this.m_scene); }));   附件 : --> EffectComplete.unitypackage_.zip 2020-06-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

1052. 材质-物理基础渲染材质 [ 63%]

...言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var Vector3 = Laya.Vector3; var scene = Laya.stage.addChild(new Laya.Scene()); //var env:String = 'inthegarden'; var env = 'sp_default'; /...

来源: Laya_示例 发布时间: 20250226

1053. 自定义panel类问题 [ 63%]

...arams) { g_uiScroll = new UIScroll(610.0, 250); g_uiScroll.pos(0, 0); Laya.stage.addChild(g_uiScroll); g_uiScroll.addEventText("hhhhhhhhhhhhhhhhhhhhhhhhhhhhh"); var view = new NpcLayer(); view.pos(0,217); Laya.stage.addChild(view); } function onAssetLoaded(params) { g_uiScroll = new UIScro...

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

1054. 关于大量图片加载绘制后的内存暴增的疑问 [ 63%]

...理 public function Demo() { Laya.init(800,1000,WebGL); Stat.show(); Laya.stage.bgColor="#EEFFCC"; //预加载图集 Laya.loader.load("res/atlas/bag.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { sp=new Sprite(); Laya.stage.addChild(sp); //每隔0.05秒...

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

1055. TiledMap中的gridWidth|(块的宽度)是哪一部分啊? [ 63%]

...ap("res/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height),Handler.create(this,onComplete)); } private function onComplete():void { // TODO Auto Generated method stub trace(tiledMap.tileWidth,tiledMap.tileHeight); }   2016-07-18 0 0 分享 微博 QZON...

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

1056. 关于event中只读属性touches,问题,求解 [ 63%]

...DemoTouch { public function DemoTouch() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; var txt:Text = new Text(); txt.text = "hello"; txt.color = "#FF00FF"; txt.width = 100; txt.height = 100; txt.x = 200; txt.y = 100; txt.fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChi...

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

1057. 微信头像显示错误 [ 63%]

...meStart.max.js:18041) at Timer.__proto._update (GameStart.max.js:17798) at Stage.__proto.render (GameStart.max.js:38093) 2018-01-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 185*****367 赞同来自: if (!tex...

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

1058. dialog 里的数据已经获取到了,也赋值了但是页面没跟新,addChild好像无效果 [ 62%]

... = new Laya.Sprite(); //添加到舞台上 console.log(self.foodBox); Laya.stage.addChild(foodBox); self.foodBox = fooddata; console.log(self.foodBox); 2018-12-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 X...

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

1059. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 62%]

... "res/atlas/clanwar_bg.jpg?" + Math.random();             Laya.stage.addChild(image);              var index:int = 0;             Laya.stage.timerLoop(1, this, function():void{index++;image.alpha = Math.sin(Math.PI*2*(index/24))})              var im...

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

1060. sprite做的按钮点击无反应? [ 62%]

...击无反应? 代码如下: var dialog_mc:Sprite = new Sprite(); Laya.stage.addChild(dialog_mc); var w:int = 110; var h:int = 40; var btn:Sprite = new Sprite(); btn.size(w, h); btn.graphics.drawRect((stageWd - w) * 0.5, (stageHt - h) * 0.5-50, w, h, "#FF7F50"); btn.graphics.fillText("确 定", (...

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