大约有 898 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0056 秒)
Laya_社区(523) Laya_示例(65) Laya3.0_api(65) Laya2.0_api(62) Laya2.0_文档(60) laya_api(57) Laya2.0_示例(51) Laya3.0_文档(15)
...ctory2; (function() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes5/vine.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERR...
来源: Laya_示例 发布时间: 20241118
....Physics.enable({ gravity: 0 }); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.createBox(); this.eventListener(); }...
来源: Laya2.0_示例 发布时间: 20241118
Bug:舞台的Event.RESIZE事件 Laya.stage.width = 100; Laya.stage.height = 100; Laya.stage.size(200, 200); Laya.stage.setScreenSize(300, 300); 这几句代码只有后面两个才会抛出Event.RESIZE事件,设置width和height不会,这是不是BUG?还是官方特意这样的? 2016-08-05 ...
来源: Laya_社区 发布时间: 20160805
...ctory2; (function() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes4/stretchyman.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Ev...
来源: Laya_示例 发布时间: 20241118
...ateSprite() { picture = new Sprite(); picture.loadImage(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / 2; picture.scale(cardScaleVal...
来源: Laya_社区 发布时间: 20181022
... class Tween_EaseFunctionsDemo { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Browser = Laya.Browser, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALI...
来源: Laya2.0_示例 发布时间: 20241118
.../ 主要逻辑代码 var Input = Laya.Input; var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Event = Laya.Event; var List = Laya.List; var Browser = Laya.Browser; var Ease = Laya.Ease; var Handler = Laya.Handler; var Tween = Laya.Tween; var WebGL = Laya.WebGL; var charact...
来源: Laya_示例 发布时间: 20241118
...sSnake { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Accelerator = Laya.Accelerator; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = ...
来源: Laya2.0_示例 发布时间: 20241118
...MovieClip; import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; import flash.net.URLRequest; import flash.system.ApplicationDomain; import flash.system.LoaderContext; impo...
来源: Laya_社区 发布时间: 20170317
...皮肤 skeleton0.showSkinByIndex(1); //播放 skeleton0.play(0,true); Laya.stage.addChild(skeleton0); //创建第二个动画 var skeleton1:Skeleton; skeleton1 = templet.buildArmature(0); skeleton1.pos(500, 700); skeleton1.showSkinByIndex(1); skeleton1.play(0,true); Laya.stage.addChild(skeleton1); }...
来源: Laya2.0_文档 发布时间: 20210715