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

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

81. 加载的时候动画会卡 [ 73%]

.../atlas/cont.json",type:Loader.ATLAS});         Laya.loader.load(imgArr,Handler.create(this,onAssetLoaded),Handler.create(this,onProgress,null,false));     }   (function() {     function Lload() {         Lload.__super.call(this);         this.dh();         this.btn.on(Event.MOUS...

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

82. graphics使用matrix的异常情况 [ 73%]

...使用matrix的异常情况 Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); ape.graphics.scale(1.01, 1) Laya.stage.addChild(ape); ape.pos(200, 0); }))...

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

83. 发射射线检测不到,物体有包围盒 [ 73%]

...       Laya.Scene3D.load("res/LayaScene_game/Conventional/game.ls",Laya.Handler.create(null,function(scene3d){             // HelperApp.a = scene3d;             //加载完成获取到了Scene3d             scene3d.name = 'good';             self.owner.addChild(scene3d); ...

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

84. list按钮点击绑定失败问题 [ 73%]

list按钮点击绑定失败问题 我按论坛说的,在renderHandler里绑定UI的事件。 但只有第一项绑定成功,而且还绑定两次,其它全都绑定失败,请问,要怎么解决这个问题? 2018-09-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

85. UNITY导出的模型旋转不了 [ 73%]

...EN_NONE; Laya.Stat.show(); Laya.Scene3D.load('/1/res/SampleScene.ls', Laya.Handler.create(null, function(scene1){ let scene = Laya.stage.addChild(scene1); Laya.Sprite3D.load("/1/res/SampleScene.lh", Laya.Handler.create(null, function(sp) { //let obj = sp; let obj = scene.addChild(sp); obj.transform....

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

86. 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 [ 72%]

...现第二次加载到的资源是无效的 Laya.Sprite3D.load(path, Laya.Handler.create(this, this.loadCompleted));   public loadCompleted(sp:Laya.Sprite3D):void {     this._loaded = true;              let useObject:Laya.Sprite3D = sp.getChildAt(0) as Laya.Sprite3D; } 重...

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

87. 资源回收的清理不干净的bug [ 72%]

... Laya.Scene3D;         Laya.Sprite3D.load("Models/Ball.lh", Laya.Handler.create(this, function(sp){             for(var i=0; i<3; i++){                 var ball = myscene.addChild(sp.clone());                 ball.name = i.toString();...

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

88. 在 tiledmap 插入一个精灵在上面 [ 72%]

...t(800, 700, Laya.WebGL);   Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); }   onLoaded(){   console.info("onLoaded");   this.tiledMap = new Laya.TiledMap();   this.tiledMap.createMap("desert.json", new Laya.Rectangle(0, 0, Laya.stage.w...

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

89. 再问:tween对象的回收利用 [ 72%]

...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 * @param duration 花费的时间,单位毫秒。 * @param ease 缓动类型,默认为匀速运动。 * @param complete 结束回调函数。 * @para...

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

90. 使用laya官方示例代码制作微信小游戏无法显示 [ 72%]

...为小游戏做了轻微的改动): import WebGL = Laya.WebGL import Handler = Laya.Handler module laya { import Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // // 不支持WebGL时自动切换至Canvas // Laya.init(800, 600, W...

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