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

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

261. tiledmap有时尺寸不正确 [ 74%]

...ug吗,我的代码是根据教程来写的,现附上代码export class Scene{ // 当前场景的配置信息 private _mLevelConf:LevelConf = null; // 地图文件 private _mTiledMap:TiledMap = null; // 自定义信息文件 private _mLoader:Loader = null; // 当前地图X坐标 private _mViewPor...

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

262. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 74%]

...界面,代码如下所示: ```typescript package { import laya.display.Scene; import laya.net.AtlasInfoManager; import laya.net.ResourceVersion; import laya.utils.Handler; import laya.utils.Stat; import laya.utils.Utils; import laya.d3.core.particleShuriKen.module.StartFrame; import laya.display...

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

263. 物理形状扫描检测(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 74%]

... if (this.castAll) { //进行形状检测,检测所有碰撞的物体 this.scene.physicsSimulation.shapeCastAll(sphereCollider, this.from, this.to, this.hitResults); for (i = 0, n = this.hitResults.length; i 该示例中射线摆放的模型是使用代码创建的,只是为了方便观察和理...

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

264. PointLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 74%]

...减半径属性。 ```javascript //创建点光源 this.pointLight = this.scene.addChild(new Laya.PointLight()); //设置点光源颜色 this.pointLight.color = new Laya.Vector3(1.0, 0.5, 0.0); //设置点光源位置 this.pointLight.transform.position = new Laya.Vector3(0.4, 0.4, 0.0); //设置点...

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

265. 真机下运行帧率不稳定 [ 74%]

...突然掉帧的现象,fast模式和slow模式都有这个问题  class Scene_Test { constructor() { super(); Laya.timer.frameLoop(1,this,this.update); } private update() { let dt = Laya.timer.delta / 1000; console.log("dt="+dt); } } 附件中图1是在iphone6上面运行打印的信息,图2是...

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

266. js继承模式 [ 74%]

...折叠 要回复问题请先登录 发起人 as_luck 相关问题 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 横屏模式在锁定竖屏的iphone上不能正常显示的问题 mac 用layaair2.0 ide 的编辑模式下,cpu爆满 想让一...

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

267. 摄像机动画的使用(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 74%]

...场景后,添加到场景上就能看到效果了。 ```typescript Laya.Scene3D.load('LayaScene_scene/Conventional/scene.ls',Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); ``` ![](img/2.gif)(图2)

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

268. 摄像机动画的使用(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 74%]

...场景后,添加到场景上就能看到效果了。 ```typescript Laya.Scene3D.load('LayaScene_scene/Conventional/scene.ls',Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); ``` ![](img/2.gif)(图2)

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

269. 淘宝创意互动小程序如何加载外部资源 [ 74%]

...的问题。远程加载完.ls文件,回调的参数为undefined. Laya.Scene3D.load('http://47.98.192.87/pages/index/3dres/scene/Sample.ls', Laya.Handler.create(this, function(_scene:Laya.Scene3D){ //这里打印出_scene不存在。 that._scene3D = _scene; Laya.stage.addChild(_scene); }));

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

270. 图片添加点击事件 有的不生效 [ 74%]

...op.on(Laya.Event.CLICK, this, this.onClickBtnShop); console.log("init main scene"); } //点击羁绊 private onClickBtnBoy():void { console.log("click onClickBtnBoy"); } private onClickBtnFriend():void { console.log("click onClickBtnFriend"); } private onClickBtnShop():void { console.log("click onCl...

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