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

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

251. 滤镜-发光滤镜 [ 75%]

...howall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, setup)); })(); function setup() { createApe(); applayFilter(); } function createApe() { ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.x = (Laya.stage.width - texture.w...

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

252. 资源加载问题 [ 75%]

...le(res/scene/scene.ls) extension with: ls.     at LoaderManager.__proto._create (laya.core.js:13205)     at LoaderManager.__proto.create (laya.core.js:13173)     at LayaGame.<anonymous> (LayaGame.ts:60)     at EventHandler.__proto.runWith (laya.core.js:724)     at ResInfo.__proto.eve...

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

253. UI-ComboBox [ 75%]

...LE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var cb = createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } function createComboBox(skin) { var co...

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

254. UI-Input [ 75%]

...t (3).png", "../../res/ui/input (4).png"]; Laya.loader.load(skins, Handler.create(this, onLoadComplete)); //加载资源。 })(); function onLoadComplete() { for (var i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDD...

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

255. 组件生命周期,混乱 [ 75%]

... 组件的生命周期是: 构造函数→preinitialize (预初始化)→createChildren(创建子对象)→initialize(初始化)→属性计算→callLater→渲染显示。 而实际的1.5.2的版本中,生命周期是:  preinitialize > createChildren > initialize > 组件构造函数...

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

256. demo里面加载资源 .lh报错 [ 75%]

...错,一个很简单的加载,用demo,git上面的资源 Laya.loader.create([ "res/u3d/grid/plane.lh", ], Laya.Handler.create(this, this.onPlaneComplete));   附件 : --> 2019-05-15 添加评论 已悬赏15元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

257. View嵌套Dialog组件 ? [ 75%]

... 能不能给个demo 我已经把代码贴进去了 还是提示 can not Create :Dialog 2018-04-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 不太明白你说的view里嵌套dialog是...

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

258. 模型资源异步加载和预加载 [ 75%]

...oom.lh");   //方法二:预加载,创建为Sprite3D类型 Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void{ //实例化加载并创建好的3D对象 var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/...

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

259. 性能测试-虫子(慎入) [ 75%]

...2, Laya.stage.height + padding * 2); Laya.loader.load(texturePath, Handler.create(this, onTextureLoaded)); })(); function onTextureLoaded() { maggotTexture = Laya.loader.getRes(texturePath); initMaggots(); Laya.timer.frameLoop(1, this, animate); } function initMaggots() { var maggotContainer; for (v...

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

260. UI-Input [ 75%]

...ui/input (3).png", "res/ui/input (4).png"] Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { for (let i = 0, len = skins.length; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; La...

来源: Laya2.0_示例 发布时间: 20251209