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

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

291. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 71%]

...ngMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMa...

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

292. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 71%]

...w BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMat; //...

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

293. popup设置了关闭效果后,窗口关闭但遮罩层没有关掉,请问如何处理 [ 71%]

...extends ui.ShopDialogUI { constructor() { super(); this.popupEffect = Laya.Handler.create(this, this.showEffect); this.closeEffect = Laya.Handler.create(this, this.hideEffect); this.btnClose.on(Laya.Event.CLICK, this, this.closeDialog); } //关闭 closeDialog(): void { this.close(); } //关闭效果...

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

294. 入门对一些概念不理解,怎么入坑啊? [ 71%]

...些概念性的东西,比如说为啥教学视频里面都喜欢用Laya.Handler.create(this,this.xxx)来做事件;为啥不能直接this.xxx呢?有什么优点呢?文档是说是从对象池里取,这又是个什么玩意儿,好抽象额。。。。 作为新手,感觉不知道哪...

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

295. Laya.SoundManager.playSound 无法播放出音效 [ 71%]

...误提示 然后尝试先调用Laya.loader.load("sfx/hit01.mp3",new Laya.Handler(this,this.onBgmComplete),null,Laya.Loader.SOUND);然后在onBgmComplete的回调里面再调用播放,就会提示 [warn]Retry to load: sfx/hit01.mp3 [error]Failed to load: sfx/hit01.mp3 但是资源文件确实是存...

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

296. 如何用代码控制panel的vscroll滚动幅度 [ 71%]

...ay.Sprite; import laya.net.Loader; import laya.ui.Panel; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function...

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

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

...式都播不出声音: 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

298. 图集动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 71%]

...ngle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atlas"; private var roleAni:Animation; public function HelloLayabox() { // 不支持WebGL时自动切换...

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

299. 发布的时候关于版本控制问题 [ 71%]

...息文件 ResourceVersion.enable("version.json?"+Math.random(), Handler.create(this, beginLoad)); 熊猫大侠 • 2018-09-07 16:44 @155*****359:加载的时候 后面跟一个随机数 每次都会拉取最新的 155*****359 • 2018-09-07 17:00 嗯嗯,明白了。多谢朋友! 。。...

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

300. 游戏遇到个bug, [ 71%]

... 代码如下 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