大约有 517 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0037 秒)
...位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]);class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.alignH = Laya.Stage.AL...
来源: Laya_示例 发布时间: 20241117
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { var t1: Text = this.createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2: Text = this.createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); var t3: Text = th...
来源: Laya_示例 发布时间: 20241117
...ture/layabox.png"); box.meshRender.material = mat; Laya.timer.frameLoop(1, this, checkHit); var ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _position = new Laya.Vector3(0, 0.25, 0); var _quaternion = new Laya.Quaternion(); var _outHit...
来源: Laya_示例 发布时间: 20241117
.../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh" ], Laya.Handler.create(this, onComplete)); function onComplete() { setMaterials(scene.getChildByName("scene")); layaPlane.transform.localPosition = new Laya.Vector3(0, 0.5, -1); Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler....
来源: Laya_示例 发布时间: 20241117
....stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage.bgColor = "#232628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; te...
来源: Laya2.0_示例 发布时间: 20241117
...tage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#232628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; t...
来源: Laya2.0_示例 发布时间: 20241117
...r_yao1yao=(function(){ function Controller_yao1yao(model){ /*__JS__ */var _this=this; /*__JS__ */_model=model; /*__JS__ */var SHAKE_THRESHOLD=100; /*__JS__ */var last_update=0; /*__JS__ */var x=y=z=last_x=last_y=last_z=0;; /*__JS__ */var canShake=1; /*__JS__ */if (window.DeviceMotionEvent){window.ad...
来源: Laya_社区 发布时间: 20160110
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya....
来源: Laya2.0_示例 发布时间: 20241117
...LayaAir引擎库 步骤三、设置启动类并初始化(Window.start(this,启动类)) 步骤四、F11发布flash版本并查看效果 2016-09-05 0 0 分享 微博 QZONE 微信 algic 赞同来自: 谢谢cuixueying这么详细的回复,我大概了解了发布swf的模式,不过使...
来源: Laya_社区 发布时间: 20160904
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var terminalX: number = 200; var characterA: Sprite = this.createCharacter("../../res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; var characterB: Sprite =...
来源: Laya_示例 发布时间: 20241117