大约有 2,497 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0071 秒)
Laya_社区(1888) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(32)
...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_示例 发布时间: 20241117
...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_示例 发布时间: 20241117
...() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Event = Laya.Event, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scale...
来源: Laya2.0_示例 发布时间: 20241117
...ya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Event = Laya.Event; this.createApe(); this.createTimerLine(); Laya.stage.on(Event.KEY_DOWN, this, this.keyDown); } createApe() { const Sprite = Laya.Sprite; this.target = new Sprite(); Laya.stage.addChild(this.target); this.t...
来源: Laya2.0_示例 发布时间: 20241117
...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_示例 发布时间: 20241117
...。关于坐标系参见https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Orientation_and_motion_data_explained。 info: RotationInfo类型参数,保存设备的旋转值。 浏览器兼容性参见:http://caniuse.com/#search=deviceorientation Hierarchy EventDispatcher Gyroscope Index Co...
来源: Laya3.0_api 发布时间: 20231115
...点击事件? 比如sprite1注册了点击事件: this.sprite1.on(Laya.Event.CLICK, this, this.sprite1CallBack); 怎样不用点击,而用代码去触发? 是 this.sprite1.event(Laya.Event.CLICK) 这样吗? 2018-07-24 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180724
...高效。(function() { var Stage = Laya.Stage; var Text = Laya.Text; var Event = Laya.Event; var HttpRequest = Laya.HttpRequest; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var hr, logger; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHe...
来源: Laya_示例 发布时间: 20241117
...效。(function() { var Stage = Laya.Stage; var Text = Laya.Text; var Event = Laya.Event; var HttpRequest = Laya.HttpRequest; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var hr, logger; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHe...
来源: Laya_示例 发布时间: 20241117
...ar Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Event = Laya.Event; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var logger; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stag...
来源: Laya_示例 发布时间: 20241117