大约有 465 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
Laya_社区(280) Laya3.0_api(78) Laya2.0_文档(56) Laya2.0_示例(22) Laya_示例(20) Laya3.0_文档(7) laya_api(1) Laya2.0_api(1)
...建一个main.ts,输入以下代码: class main{ constructor(){ Laya.init(600,400); console.log(common.num); } } new main(); 这里面访问了另外一个文件common.ts中定义的类: class common{ constructor(){ } public static num : number = 1000000; } 然后启动调试,居然报了这个...
来源: Laya_社区 发布时间: 20180208
...ayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //Laya.loader.load([{url: "res/atlas/char_wudang01.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); this.onLoaded(); } private function onLoaded():void { //Animation.createFrames(["res/atlas/monsterbea...
来源: Laya_社区 发布时间: 20170220
...动位置 添加舞台事件问题? 请教下,舞台设的宽度是800,600 为什么显示出来看着很小一团?什么办法都试过了~ 编辑好的动画怎么添加到舞台上 为什么我做好的UI无法添加到舞台上 问题状态 最新活动: 2019-11-28 09:22 浏览: 698 关注...
来源: Laya_社区 发布时间: 20191127
...on; class GameMain{ constructor() { Laya.init(600,400); let body = laya.utils.Browser.document.body; let input = laya.utils.Browser.createElement("input"); input.type = "file"; input.id = "photo"; ...
来源: Laya_社区 发布时间: 20161114
...ucui • 2017-05-02 17:10 <canvas id="layaCanvas" width="600" height="400" style="position: absolute; left: 0px; top: 0px; background: rgb(0, 0, 0); transform-origin: 0px 0px 0px; transform: matrix(1, 0, 0, 1, 0, 0);"></canvas> var canvas:any = doc...
来源: Laya_社区 发布时间: 20170502
...g 赞同来自: Game.jsvar Game = (function(){ (function Game(){ Laya.init(600,800); this.bg = new window.Background(); Laya.stage.addChild(this.bg); })(); })();Background.js var Background = (function(_super){ function Background(){ Background.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loa...
来源: Laya_社区 发布时间: 20170420
...mo { private var img:Image; public function LayaAirDemo() { Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load("res/logo.png",Handler.create(this,onLo...
来源: Laya_社区 发布时间: 20170704
...是这种情况, 请问如何修改?需要在哪里修改?Laya.init(600, 400, WebGL);Laya.MiniAdpter.init(); 附件 : --> 2018-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 138*****019 赞同来自: L...
来源: Laya_社区 发布时间: 20180809
...分辨率,居然好了 //Laya3D.init(320, 568, true); Laya3D.init(400, 600, true); 但是……为啥…… Laya_Aaron • 2019-02-20 10:54 @栗子猫大王:那个分辨率比例不大对
来源: Laya_社区 发布时间: 20190215
... MiniAdpter.init(true,true); Laya.init(800,600); Laya.stage.scaleMode = Stage.SCALE_FIXED_AUTO; Laya.stage.bgColor = "#ffffff"; var img:Image = new Image("../res/test.png"); img.height = 100...
来源: Laya_社区 发布时间: 20190529