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

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

721. drawTextures触发的drawCall的次数 [ 72%]

...理碰撞无法触发OnTriggerEnter、OnTriggerStay、OnTriggerExit的bug Event触发不了 Laya3d球星添加了刚体,但是碰撞无法触发onTriggerEnter的问题,120元有偿悬赏解答 ios中没有触发事件前使用playSound没有声音 Event.CLOSE不触发 Laya2.0 的3D射线检测...

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

722. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 72%]

...ildAt addChildren addComponent addComponentInstance addLine addLines bubbleEvent callLater clear clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents getLine hasHideFlag hasListener isAncestorOf off offAll offA...

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

723. Button自定义属性 [ 72%]

...lt; len; ++i){ let btn:Laya.Button = this.main.getchildbuy(i); btn.on(Laya.Event.CLICK,this.this.clickHandle); btn.xx = "xxx"; } private clickHandle(e:Laya.Event):void{ } 类似于我想给btn绑定“xxx”数据,用来给后面点击获取

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

724. 关于定位的问题 [ 72%]

...接 提交 1 个回复 cuixueying 赞同来自: 可以为舞台监听一个Event.RESIZE事件,在resize事件的回调里,判断Browser.width、Browser.height的值,以此来知道目前是横屏还是竖屏,动态的修改btn的位置即可! 2017-08-01 0 0 分享 微博 QZONE 微信 为...

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

725. TS setExternalLinkEx問題 [ 72%]

...nimationFrame(render); } window.requestAnimationFrame(render); document.addEventListener('touchstart',()=>{ if(Browser.window.conch){ var l = 50; var t = 50; var w = window.innerWidth-l*2; var h = window.innerHeight-t*2; Browser.window.conch.setExternalLinkEx('http://www.layabox.com',l,t,w,h,true...

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

726. 材质-PBRStandard材质 [ 72%]

..../../res/threeDimen/scene/PBRMaterialScene/Showcase.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); camera.sky...

来源: Laya_示例 发布时间: 20251209

727. 播放骨骼动画 [ 72%]

...tar:Laya.Skeleton; this.factory = new Laya.Templet(); this.factory.on(Laya.Event.COMPLETE, this, this.parseComplete); this.factory.on(Laya.Event.ERROR, this, this.onError); this.factory.loadAni("sp/aa.sk"); this.avatar = this.factory.buildArmature(0); this.avatar.play(0,true); 2017-07-18 添加评...

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

728. laya如何做屏幕旋转 [ 72%]

...选项,如果你想判断是否旋转了,你可以为你的游戏添加Event.RESIZE事件即可,根据Browser.width和Browser.height的获取,可以判断当前屏幕的尺寸,以此来判断是否进行了屏幕旋转! 2017-04-05 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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

729. js飞机大战报错 请大神看看 [ 72%]

...按钮点击事件 点击后暂停游戏         this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick);         // 初始化UI 显示         this.reset();     } ...     "Cannot read property 'on' of undefined" "TypeError: Cannot read property 'on' of undefined     at new ...

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

730. LAYA AIR ide1.7.1beta 网页跟手机调试不能用 [ 72%]

...g-core\node_modules\vscode-debugadapter\lib\protocol.js:24:60) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:176:18) Error processing "evaluate": TypeError: Cannot read property 'api' of undefined at ChromeConnection.get api [as api] (f:\LayaA...

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