大约有 696 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0044 秒)
Laya_社区(377) Laya_示例(132) Laya2.0_示例(116) Laya2.0_文档(65) Laya3.0_api(2) Laya3.0_文档(2) laya_api(1) Laya2.0_api(1)
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { this.createCharacter(); this.createEaseFunctionList(); this.createDurationCrontroller(); } createCharacter() { const Sprite = Laya.Spr...
来源: Laya2.0_示例 发布时间: 20241124
...s Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); Laya.stage.scaleMode = Stage.SCALE_FULL; setup(); })(); function setup() { Laya.stage.on(Event.RESIZE, this, onResize); makeObject(0); for (var i = 0; i objs) { current = 0; } makeObject(current); } function makeObject(t) { var xd; var ...
来源: Laya_示例 发布时间: 20241124
...s Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); Laya.stage.scaleMode = Stage.SCALE_FULL; setup(); })(); function setup() { Laya.stage.on(Event.RESIZE, this, onResize); makeObject(0); for (var i = 0; i objs) { current = 0; } makeObject(current); } function makeObject(t) { var xd; var ...
来源: Laya2.0_示例 发布时间: 20241124
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { createCharacter(); createEaseFunctionList(); createDurationCrontroller(); } function createCharacter() { character = new Sprit...
来源: Laya_示例 发布时间: 20241124
...LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; initShader(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.tra...
来源: Laya_示例 发布时间: 20241124
...Antialias = true; Laya.init(Browser.width,Browser.height,true); Laya.stage.scaleMode = Stage.SCALE_FULL; ChangeSize(); Laya.timer.once(1000,this,function start():void{ Laya.timer.clearAll(this); Laya.stage.on(Event.RESIZE,this,onResize); }); } protected function HengPing(): void { trace("设置...
来源: Laya_社区 发布时间: 20190520
...(750, 1334, Laya.WebGL); //设置适配模式 Laya.stage.scaleMode = "exactfit"; //实例一个背景 var bg = new Laya.Image(); bg.skin = "res/bg.png"; Laya.stage.addChild(bg); })(); 在layaIDE,微信开发者工具模拟器,和iPho...
来源: Laya_社区 发布时间: 20180604
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { createInteractiveTarget(); createLogger(); } function createInteractiveTarget() { var rect = new Sprite(); rect.graphics.drawRect(0, 0, ...
来源: Laya_示例 发布时间: 20241124
...Div; var infoText; (function() { Laya.init(Browser.width, 255); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; createDom(); initMap(); createInfoText(); var successHandler = new Handler(this, updatePosition); var errorHandler = new Handler(this, onError); // 使用高精度位置 Geolocation.enableHigh...
来源: Laya_示例 发布时间: 20241124
...ayaDiv.append(Laya.init(layaDiv.width(), layaDiv.height())); // Laya.stage.scaleMode = Laya.Stage.NO_SCALE; Laya.stage.scaleMode = Laya.Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; var img = new Laya.Sprite(); img.loadImage('images/item_5.png'); Laya.stage.addChild(img); img.on(Laya.Event.MO...
来源: Laya_社区 发布时间: 20170427