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

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

11. 骨骼动画-橡胶人 [ 96%]

...function() { var Skeleton = Laya.Skeleton; var Templet = Laya.Templet; var Event = Laya.Event; var Browser = Laya.Browser; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 200; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex = 0; var mArmature; var mCur...

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

12. 骨骼动画-适配版Spine [ 96%]

...rowser = Laya.Browser; var WebGL = Laya.WebGL; var Stage = Laya.Stage; var Event = Laya.Event; var Stat = Laya.Stat; var SpineTemplet = Laya.SpineTemplet; class SpineBinary { constructor() { this.aniPath = "res/bone/spineboy-pma.skel"; this.index = -1; Laya.init(Browser.width, Browser.height, WebGL)...

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

13. 骨骼动画-多纹理 [ 95%]

...Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath); ...

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

14. [Error] TypeError: null is not an object (evaluating 'this._style._tf') [ 95%]

....js:10293) fitDOMElementInArea (laya.core.js:10340) run (laya.core.js:710) event (laya.core.js:494) setScreenSize (laya.core.js:18495) _changeCanvasSize (laya.core.js:18371) run (laya.core.js:9832) _update (laya.core.js:9576) render (laya.core.js:18561) _loop (laya.core.js:18519) loop (laya.core.js:...

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

15. 骨骼动画-换装 [ 95%]

...Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes2/goblins.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath);...

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

16. 骨骼动画-换装 [ 95%]

...function() { var Skeleton = Laya.Skeleton; var Templet = Laya.Templet; var Event = Laya.Event; var Browser = Laya.Browser; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 400; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex = 0; var mArmature; var mCur...

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

17. Socket连接不上(已解决) [ 95%]

Socket连接不上(已解决) socket = new Socket(); socket.on(Event.OPEN, this, onSocketOpen); socket.connect("127.0.0.1", 8080); 照着官方例子,服务器显示连接上了,但onSocketOpen没调用到,而且socket的connected为false。 能帮忙看是什么原因么?   具体代...

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

18. 骨骼动画-Spine事件 [ 94%]

...tX = 400, mStartY = 500, mCurrIndex = 0, mLabelSprite; class Skeleton_SpineEvent { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeig...

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

19. Unhandled promise rejection: Error: Cannot navigate to invalid URL [ 93%]

...node_modules/noice-json-rpc/lib/noice-json-rpc.js:42:48)     at emitOne (events.js:101:20)     at LoggingSocket.emit (events.js:191:7)     at Receiver.receiverOnMessage (/Applications/LayaAirIDE.app/Contents/Resources/app/extensions/laya-debug2/node_modules/ws/lib/websocket.js:719:20)     at...

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

20. 骨骼动画-Spine事件 [ 93%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var EventData = Laya.EventData; var Skeleton = Laya.Skeleton; var Templet = Laya.Templet; var Sprite = Laya.Sprite; var Event = Laya.Event; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var Tween = L...

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