大约有 7 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0022 秒)
...ar Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Stat = Laya.Stat; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMod...
来源: Laya_示例 发布时间: 20241123
...tage = Laya.Stage; var WebGL = Laya.WebGL; var Browser = Laya.Browser; var Stat = Laya.Stat; var Render = Laya.Render; var stageWidth = 800; var stageHeight = 600; var Matter = Browser.window.Matter; var LayaRender = Browser.window.LayaRender; var mouseConstraint; var engine; (function() { // 不支...
来源: Laya_示例 发布时间: 20241123
... = Laya.Event; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var Tween = Laya.Tween; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 400; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex = 0; var mArmature; var mCurrSkinIndex = 0; var mFactory...
来源: Laya_示例 发布时间: 20241123
...ext; var Stage = laya.display.Stage; var Browser = laya.utils.Browser; var Stat = laya.utils.Stat; var WebGL = laya.webgl.WebGL; var Event = laya.events.Event; /** * Tips: * 1. 引擎初始化后,会占用16M内存,用来存放文字图集资源,所以即便舞台没有任何对象,也会占...
来源: Laya_示例 发布时间: 20241123
...aya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.pos1 = new Laya.Vector3(0, 0, -0.5); this.pos2 = new Laya.Vector3(0, 0, 0.5); var camera: Laya.Camera = scene.addChild(new Laya.Ca...
来源: Laya_示例 发布时间: 20241123
...xt; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class Text_Scroll { private var txt:Text; private var prevX:Number = 0; private var prevY:Number = 0; public function Text_Scroll() { // 不支持WebGL时自动切换至Canvas Laya.init(B...
来源: Laya_示例 发布时间: 20241123
...aya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.initShader(); var scene: Laya.Scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/terrain/terrain.ls")) as Laya.Scene; var camera: Laya.Camera = scene.addChild(new Laya.Camera(0, 0.1, 100...
来源: Laya_示例 发布时间: 20241123