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

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

1411. 请问object层中添加的sprite怎么添加点击事件 [ 48%]

...vent.CLICK,this,function() {    alert("My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : --> hxwlworld.zip 2018-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回...

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

1412. 如何为灯光添加阴影(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 48%]

...产生阴影: ```typescript // A plane receive shadow. var grid = scene.addChild(Laya.Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite = this.addPBRSphere(Laya.PrimitiveMesh.c...

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

1413. 如何为灯光添加阴影(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 48%]

...影: ```typescript // A plane receive shadow. var grid: Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); (grid.getChildAt(0)).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(Primitiv...

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

1414. 开放数据域组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...nAwake(): void { let opendata = new Laya.OpenDataContextView(); Laya.stage.addChild(opendata); opendata.pos(100,100); opendata.size(500,500); } } 成功创建开放数据域视图节点后,我们只是完成了引擎层面要完成的工作流程,接下来我们还要完成微信小游戏层面...

来源: Laya3.0_文档 发布时间: 20251010

1415. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 48%]

...method stub var mc:MovieClip=event.target.content as MovieClip; mc.play(); addChild(mc) } } }提示: 1、在laya下使用laoder加载SWF文件,需添加load()方法的LoaderContext参数。图片则不需要。 2、主文档类不会自动添加舞台,需要在构造函数中收到添加...

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

1416. laya.ui.WXOpenDataViewer_API3.0 [ 47%]

...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayo...

来源: Laya3.0_api 发布时间: 20231102

1417. laya.ui.UIComponent_API3.0 [ 47%]

...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout...

来源: Laya3.0_api 发布时间: 20231115

1418. 如何为灯光添加阴影(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 47%]

...影: ```typescript // A plane receive shadow. var grid: Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(PrimitiveM...

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

1419. 关于位图字体的valign属性问题 [ 47%]

...lor="#ffffff"; text.text="hello!LayaBox!"; text.font=mFontName; Laya.stage.addChild(text); } } }测试结果: 1、value=top   2、value=middle   3、value=bottome 总结:并未发现你所说的问题,请用最新版本1.5.3进行测试,如果还有问题,提供个demo,我们查下问...

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

1420. 多线程Worker · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...面 var testView:ui.test.TestPageUI = new ui.test.TestPageUI(); Laya.stage.addChild(testView); } } new LayaUISample; WorkerLoader.workerPath = "libs/worker.js"; 设置worker.js的路径,这个worker.js是Laya官方提供的,我们把他拷贝复制到我们自己设置的路径,这个js在Laya...

来源: Laya3.0_文档 发布时间: 20251010