大约有 60 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0030 秒)
...HOW_ALL();package { import laya.display.Sprite; import laya.display.Stage; public class SmartScale_Scale_SHOW_ALL { private var rect:Sprite; public function SmartScale_Scale_SHOW_ALL() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createCantralRec...
来源: Laya_示例 发布时间: 20260929
...mport laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class Debug_FPSStats { public function Debug_FPSStats() { Laya.init(Browser.clientWidth, Browser.clientHeight); Stat.show(Browser.clientWidth - 120 >> 1, Browser.clientHeight - 100 >> 1); } } }
来源: Laya_示例 发布时间: 20260929
...ort laya.utils.Stat; import laya.maths.Rectangle; import laya.webgl.WebGL; public class PerformanceTest_Maggots { private var texturePath:String = "../../../../res/tinyMaggot.png"; private var padding:int = 100; private var maggotAmount:int = 5000; private var tick:Number = 0; private var maggots:Ar...
来源: Laya_示例 发布时间: 20260929
...de.part", Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } public onAssetsLoaded(settings: ParticleSetting): void { this.sp = new Particle2D(settings); this.sp.emitter.start(); this.sp.play(); Laya.stage.addChild(this.sp); this.sp.x = Laya.stage.width / 2; this.sp.y = Laya.stage.heig...
来源: Laya_示例 发布时间: 20260929
...de.part", Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } public onAssetsLoaded(settings: ParticleSetting): void { this.sp = new Particle2D(settings); this.sp.emitter.start(); this.sp.play(); Laya.stage.addChild(this.sp); this.sp.x = Laya.stage.width / 2; this.sp.y = Laya.stage.heig...
来源: Laya_示例 发布时间: 20260929
...ew.part", Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } public onAssetsLoaded(settings: ParticleSetting): void { this.sp = new Particle2D(settings); this.sp.emitter.start(); this.sp.play(); Laya.stage.addChild(this.sp); this.sp.x = Laya.stage.width / 2; this.sp.y = Laya.stage.heig...
来源: Laya_示例 发布时间: 20260929
...port laya.events.Event; import laya.utils.Stat; /** * ... * @author ... */ public class PBRDemo { public function PBRDemo() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(Scene.load(".....
来源: Laya_示例 发布时间: 20260929
...r.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes1/dragon.sk"; this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this.parseComplete); this.mFactory.on(Event.ERROR, this, this.onError); thi...
来源: Laya_示例 发布时间: 20260929
...ht,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes5/vine.sk"; this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this.parseComplete); this.mFactory.on(Event.ERROR, this, this.onError); this....
来源: Laya_示例 发布时间: 20260929
...ht,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes4/stretchyman.sk"; this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this.parseComplete); this.mFactory.on(Event.ERROR, this, this.onError)...
来源: Laya_示例 发布时间: 20260929