大约有 111 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0039 秒)
Laya_社区(45) Laya3.0_api(16) laya_api(13) Laya2.0_api(13) Laya2.0_文档(7) Laya2.0_示例(7) Laya_示例(7) Laya3.0_文档(3)
...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
...放时间、总循环次数、播放地址等信息的方法。 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
...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
...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
...种开发语言、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
...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
...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
...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
...lass AnimationPlayer AnimationPlayer 类用于动画播放器。 Hierarchy EventDispatcher AnimationPlayer Index Constructors constructor Properties isCache playbackRate returnToZeroStopped Accessors cacheFrameRate cacheFrameRateInterval cachePlayRate currentAnimationClipIndex currentFrameTime curre...
来源: Laya3.0_api 发布时间: 20231115
...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