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

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

351. 仅在Android微信小游戏下图片错乱 [ 70%]

...c preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console.log(Laya.loader.getRes("res/ui...

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

352. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 70%]

...构中没有子父级关系的情况下连接两个对象的运动。 **在LayaAir中使用FixedConstraint** - 1.创建两个刚体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform...

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

353. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 70%]

...构中没有子父级关系的情况下连接两个对象的运动。 **在LayaAir中使用FixedConstraint** - 1.创建两个刚体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform...

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

354. 纹理截取后内存释放不了 [ 70%]

...放不了 private var oriDBArr:Array = null;//位图源 var tex:Texture = Laya.loader.getRes(_url); for (var i:int = 0; i < list1["oriBDPos"].length; i++ ) { var g:Graphics = new Graphics(); var t:Texture = Texture.createFromTexture(tex, posObj.x, posObj.y, posObj.w, posObj.h); g.drawTexture(t, 0...

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

355. 分享 修复webaudiosound 循环播放的声音 俩个失声问题 [ 70%]

...有声音的问题修复 webAudioSoundChannel play方法修改  _proto = Laya.WebAudioSoundChannel.prototype; /** *播放声音 */ _proto.play = function () { // if (this.url.indexOf("music.d") != -1) { // console.log("play", this.url) // console.trace("play", this.url) // } Laya.SoundManager.addCh...

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

356. 关闭指定定时器timer [ 70%]

...闭一个定时器,请问我该怎么写呢? 假设有这两个定时器 Laya.timer.loop(100, this,update); Laya.timer.loop(1000,this,shoot_boss); 我希望关闭第二个定时器,该如何使用clear呢? 谢谢。 2016-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

357. 资源压缩成zip后加载的问题 [ 70%]

...把若干个文件压缩成一个zip,下载通过JSZip解压后,如何用Laya.loader再去初始化呢? let zip = new JSZip();   我的需求是这样,比如有个界面,aa.scene,如果我提前通过Laya.loaer 加载了这个aa.scene,Laya.loader里面已经有了缓存,之后再open时...

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

358. Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 [ 70%]

Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 官方2D实例, 在TestScene的GameControl脚本后面下分别拖拽了两个新的脚本: Ascript 与 Bscript , 在两者其中的onAwake与onEnable方法中打印log , 并在GameUI类中也进行log打印. 在2.0-2.4...

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

359. 载入场景报错 [ 70%]

...出场景,只有maincamera 和light,所有代码如下 import Handler=laya.utils.Handler; import Loader=laya.net.Loader; // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL; Lay...

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

360. [LayaAir2]Laya2.x对于支付宝小游戏得支持 [ 70%]

[LayaAir2]Laya2.x对于支付宝小游戏得支持 无论Laya.loader.loadPackage(),还是my.loadSubpackage()全部在2.X上歇菜了,只要不分包"subpackages": [{"name": "XX", "root": "XX/" }],不走分包逻辑,小游戏就能正常进入loading场景,否则就直接卡在logo界面,m...

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