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

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

1361. 粒子在webgl情况和canvas情况存在显著差异,请看图 [ 66%]

...../../"; Laya.loader.load("res/particles/GravityMode.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); })(); function onAssetsLoaded(settings) { data = { "minStartColor": { "0": 1, "1": 0, "2": 0, "3": 1 }, "boxEmitterVelocity": { "0": 0, "1": 0, "2": 0 }, "minHorizontalStartRadian": ...

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

1362. [Laya2.3] 天空盒在微信上的显示问题 [ 66%]

...     }          Laya.loader.create(sceneUrl,new Laya.Handler(this,completeFunc)); 附件 : --> scene1.zip 2019-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被...

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

1363. Dialog:屏蔽点击Dialog之外的区域关闭弹框 [ 66%]

...n // 这儿加一层限制,所有未知原因的关闭弹窗都不生效 this.closeType = type; Laya.Dialog.manager.close(this); } 2020-07-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 cuixueying 相关问题 求指点3d射线碰...

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

1364. 没有人尝试使用3d物理引擎么 [ 66%]

...算器步进时长 var timeStep:Object=1.0 / 60.0; box.timer.loop(1000/60,this,cannonUpdate); } private function cannonUpdate():void{ // 循环步进驱动解算 world.step(1.0 / 60.0); if(box.timer.currFrame %500 == 0){ sphereBody.velocity = new CANNON.Vec3(0,0,20) as Object; } box.transform.transl...

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

1365. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 66%]

...und1,ground2,ground3,ground4]);             Laya.timer.loop(1000, this, add_F);         }         private function add_F():void         {             var rockOptions:Object = {                 stiffness: 1,                 friction: 1,   ...

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

1366. 自定义shader-地形shader [ 66%]

...ra.addComponent(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { setCustomMaterial(scene.getChildAt(2)); }); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var customMaterial = new CustomTerrainMaterial()...

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

1367. hitTestPrior点击穿透 [ 66%]

...phics.drawRect(0,0,300,300,"#FFFF00"); sp.size(100,100); sp.on(Event.CLICK,this,onClickSp); Laya.stage.addChild(sp); var spchild:Sprite=new Sprite(); spchild.graphics.drawRect(0,0,200,200,"#FF0000"); spchild.size(200,200); spchild.on(Event.CLICK,this,onClickSpChild); sp.addChild(spchild); } private ...

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

1368. Effect材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 66%]

...aya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ![](img/1.gif)(图1)

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

1369. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 66%]

...所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.si...

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

1370. new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor [ 66%]

....TiledMap; constructor() { Laya.init(Laya.Browser.width, 224, Laya.WebGL); this.tMap = new Laya.TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("../bin/res/MarioMap1.json", viewRect, Laya.Handler.create(this,this.initMap)); } private initMap(): void { } } new Gam...

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