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

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

641. [LayaNative3]游戏致命bug,WEB 性能是 native 性能 35倍 ,请求紧急修复 [ 50%]

...ya.loader.load(             loadList,             Laya.Handler.create(this, () => {                 var label=this.owner.getChildByName("time") as Laya.Label;                 label.text=((Date.now() - nt) / 1000 + "秒");             })         );  测试环...

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

642. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 50%]

...        Laya.loader.load([GameConfig.getAssetsFile("comp")],Handler.create(this, onComplet));                          }         private var imag:Image;         private function onComplet():void         {             imag=new Image("ui/comp/image.pn...

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

643. 图集制作使用详解(JavaScript-IDE篇(JS)-使用IDE创作) [ 50%]

...式图集使用示例 Laya.loader.load("./res/test/c1.atlas", Laya.Handler.create(this, onLoaded)); ```   `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的图...

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

644. timer无法执行 [ 50%]

...-7; let ball: Laya.MeshSprite3D = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(1)); this.scene1.addChild(ball);   ball.transform.position = new Laya.Vector3((Math.random() - 0.5) * 2, 10, 17); //添加刚体   ball.addComponent(Laya.PhysicsCollider); let ballrigid: Laya.Rigidbody3D = ball...

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

645. 图集制作使用详解(TypeScript-IDE篇(TS)-使用IDE创作) [ 50%]

...图集使用示例 Laya.loader.load("./res/atlas/test.atlas", Laya.Handler.create(this, this.onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的图...

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

646. 小游戏内 个别手机出现图片花了 像马赛克一样的东西,很多图片不显示 [ 50%]

... "type":Laya.loader.ATLAS } ] Laya.loader.load(loadData, Handler.create(null, onload), Handler.create(null, onProgress, null, false)); 熊猫大侠 • 2018-05-25 17:06 @170*****199:肯定资源加载完成 才能跳转战斗啊 170*****199 • 2018-05-25 17:07 对啊,是加载完进的...

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

647. 图集制作使用详解(ActionScript-IDE篇(AS3)-使用IDE创作) [ 50%]

...式图集使用示例 Laya.loader.load("./res/atlas/test.atlas", Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的图集时,...

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

648. 关于大量图片加载绘制后的内存暴增的疑问 [ 50%]

..."#EEFFCC"; //预加载图集 Laya.loader.load("res/atlas/bag.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { sp=new Sprite(); Laya.stage.addChild(sp); //每隔0.05秒出现下张图片 Laya.timer.loop(50,this,onLoop); } private function onLoop():void { //...

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

649. 鼠标穿透问题 [ 50%]

...LE; Laya.loader.load([{url:"image/comp.json", type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { createList(); createItems(); createLoading(); _list.addChild(_loadingBg); Laya.stage.addChild(_list); } protected function createList():void { _list = new List(); ...

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

650. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 50%]

...onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` 第三步...

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