大约有 693 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0056 秒)
Laya_社区(374) Laya_示例(132) Laya2.0_示例(116) Laya2.0_文档(65) Laya3.0_api(2) Laya3.0_文档(2) laya_api(1) Laya2.0_api(1)
...始化引擎 Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //预加载所有资源 var resource = [{url: "Box/LayaScene_JJF/Conv...
来源: Laya_社区 发布时间: 20190605
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; var res = [ "../../res/ui/vscroll.png", "../../res/ui/vscroll$bar.png", "../../res/ui/vscroll$down.png", "../../res/ui/vscroll$up.png", "../../res/ui/tree/clip_...
来源: Laya2.0_文档 发布时间: 20210715
... { //初始化引擎 Laya.init(1136, 640,WebGL); //等比缩放 Laya.stage.scaleMode = Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1,this,onFrame); } private function onFrame():void { //如果创建对象时间为100帧间隔后 if(createTime>...
来源: Laya2.0_文档 发布时间: 20210715
... Laya.stage.bgColor = "#000000"; Laya.stage.scaleMode = Stage.SCALE_FIXED_AUTO; //背景音乐 m_bkSound = new Sound(); m_bkSound.load("Res/Sound/City.mp3"); m_bkSound.play(); ...
来源: Laya_社区 发布时间: 20170921
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; var res: Array = [ "res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.png", "res/ui/tree/clip_selectBox.png", "res/ui...
来源: Laya2.0_文档 发布时间: 20210714
...ate label: Laya.Label; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.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._outHitAllInfo = new Array<Laya.Ray...
来源: Laya_社区 发布时间: 20180820
...请查看附件): Main.tsLaya.init(750, 1334, Laya.WebGL); Laya.stage.scaleMode = "showall"; Laya.stage.screenMode = "none"; Laya.stage.alignH = "center"; Laya.stage.alignV = "middle"; const spine: Laya.Skeleton = new Laya.Skeleton(); spine.pos(100, 400); spine.load('res/spine/princess1.sk', new...
来源: Laya_社区 发布时间: 20181120
...下边代码 Laya.init(1000,600,Laya.WebGL); Laya.Stat.show(); Laya.stage.scaleMode = "showall"; var sp1=new Laya.Sprite(); sp1.graphics.drawPath(400, 310, [["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 110, 0, 110, 5, 5], ["lineTo", 110, 55], [&qu...
来源: Laya_社区 发布时间: 20171127
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Stat.enable(); Laya.stage.loadImage("res/cartoon2/background.jpg", 0, 0, 1280, 900); this.createCharacters(); t...
来源: Laya2.0_示例 发布时间: 20241119
...display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { remov...
来源: Laya_社区 发布时间: 20151106