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

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

531. 再问:tween对象的回收利用 [ 69%]

...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

532. laya.ui.Button_API3.0 [ 69%]

...一个 Button 实例。 package { import laya.ui.Button; import laya.utils.Handler; public class Button_Example { public function Button_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button....

来源: Laya3.0_api 发布时间: 20231115

533. unity导出有动作的模型,加载时报错 [ 69%]

....Sprite3D.load("res/LayaScene_Model_1001/Conventional/Model_1001.lh", Laya.Handler.create(null, (sprite:Laya.Sprite3D) => { this.mScene.addChild(sprite); sprite.transform.translate(new Laya.Vector3(-0.3, 0, 0)); }));   报错信息laya.d3.js:6573 Uncaught TypeError: Cannot set property 'x' of un...

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

534. 3D模型无法用Tween类吗 [ 69%]

...ion;Laya.Tween.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animation...

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

535. laya.ui.CheckBox_API3.0 [ 69%]

... CheckBox 实例。 package { import laya.ui.CheckBox; import laya.utils.Handler; public class CheckBox_Example { public function CheckBox_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check...

来源: Laya3.0_api 发布时间: 20231115

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

...loader,那就不用处理了。 Laya.loader.load("res/aaa.scene", Laya.Handler.create(null, (content)=>{console.log(content)})); Laya.loader.load("res/bbb.json", Laya.Handler.create(null, (content)=>{console.log(content)})); 2019-04-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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

537. 其他引擎的Demo-Example_04 [ 69%]

...ructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(w, h, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCAL...

来源: Laya2.0_示例 发布时间: 20260820

538. 游戏遇到个bug, [ 69%]

... 代码如下 Laya.Tween.to(spring2,{scaleX:1.0,scaleY:1.0},500,null,Laya.Handler.create(this,function(){             if(!spring2.destroyed){ // 添加判断后就不出bug了                 Laya.Tween.to(spring2,{alpha:0},300,null,Laya.Handler.create(this,function(){           ...

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

539. IPHONE机,游戏之前有声音的,现在safari和CHROME上没有声音,UC上有 [ 69%]

...式都播不出声音: Laya.SoundManager.playMusic("sounds/fish.mp3", 1, Handler.create(this, this.onComplete)); //Laya.SoundManager.playSound("sounds/fish.mp3", 1, Handler.create(this, this.onComplete),Laya.AudioSound); 后来在html里加了一个audio标签,看看原始的audio能不能播。...

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

540. Uncaught Error: Laya3D:unknown mesh version [ 69%]

... Laya.loader.create("LayaScene_yuanwenj2/Conventional/yuanwenj2.ls", Laya.Handler.create(this, function() {             console.log("sssssssssssss");         })); 或者使用 Laya.Scene3D.load('LayaScene_yuanwenj2/Conventional/yuanwenj2.ls',Laya.Handler.create(this,this.onComple...

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