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

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

11. 骨骼动画-换装 [ 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_示例 发布时间: 20241124

12. laya.media.SoundChannel_API3.0 [ 95%]

...放时间、总循环次数、播放地址等信息的方法。 Hierarchy EventDispatcher SoundChannel Index Properties completeHandler isStopped loops startTime url Accessors duration position volume Methods event hasListener off offAll offAllCaller on once pause play resume stop Properties complet...

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

13. 骨骼动画-换装 [ 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_示例 发布时间: 20241124

14. 分享:销毁龙骨动画! [ 95%]

...ton; import laya.ani.bone.Templet; import laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class ASDemo { private var mAniPath:String; private var mFactory:Templet; private var mCurrIndex:int = 0; private var mArmature:...

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

15. 骨骼动画-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_示例 发布时间: 20241124

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

...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_示例 发布时间: 20241124

17. movieClip stop 没有用 [ 91%]

...xueying 赞同来自: package { import laya.ani.swf.MovieClip; import laya.events.Event; public class DragonMaskDemo { public function DragonMaskDemo() { Laya.init(550, 300); swfPlay(); } private function swfPlay():void { var mc:MovieClip=new MovieClip(); mc.load('reset.swf'); mc.on(Event.LOADED,thi...

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

18. laya.physics.Physics_API3.0 [ 90%]

...hysics" Physics Class Physics 2D物理引擎,使用Box2d驱动 Hierarchy EventDispatcher Physics Index Constructors constructor Properties box2d positionIterations velocityIterations world PIXEL_RATIO Accessors allowSleeping gravity worldRoot I Methods event getBodyCount getContactCount getJointCo...

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

19. laya.ani.AnimationPlayer_API3.0 [ 88%]

...lass AnimationPlayer AnimationPlayer 类用于动画播放器。 Hierarchy EventDispatcher AnimationPlayer Index Constructors constructor Properties isCache playbackRate returnToZeroStopped Accessors cacheFrameRate cacheFrameRateInterval cachePlayRate currentAnimationClipIndex currentFrameTime curre...

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

20. 输入设备-摇一摇 [ 88%]

...nction startShake() { Shake.instance.start(5, 500); Shake.instance.on(Laya.Event.CHANGE, this, onShake); console.text = '开始接收设备摇动\n'; } function onShake() { shakeCount++; console.text += "设备摇晃了" + shakeCount + "次\n"; if (shakeCount >= 3) { Shake.instance.stop(); console.t...

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