• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 465 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)

231. 一个很奇怪的问题,不知道其他同学遇到没有 [ 53%]

...建一个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

232. Animation的createFrames为何加载不了有的图集资源 [ 52%]

...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

233. 舞台的位置怎么自由设定 [ 52%]

...动位置 添加舞台事件问题? 请教下,舞台设的宽度是800,600 为什么显示出来看着很小一团?什么办法都试过了~ 编辑好的动画怎么添加到舞台上 为什么我做好的UI无法添加到舞台上 问题状态 最新活动: 2019-11-28 09:22 浏览: 698 关注...

来源: Laya_社区 发布时间: 20191127

234. 请问:Ts下如何实现打开照相机和系统图库的方法?IOS和Android [ 52%]

...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

235. 怎么才能像HTML5中那样直接操作Canvas [ 52%]

...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

236. "Background is not defined"怎么会没定义呢???求救 [ 52%]

...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

237. image.drawToCanvas方法获取的一直是空的png [ 52%]

...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

238. 请问一下,微信小游戏2D项目在微信开发者工具中打开显示异常 [ 52%]

...是这种情况, 请问如何修改?需要在哪里修改?Laya.init(600, 400, WebGL);Laya.MiniAdpter.init(); 附件 : --> 2018-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 138*****019 赞同来自: L...

来源: Laya_社区 发布时间: 20180809

239. 微信小游戏 点击区域 在 IPAD Iphone上出现偏移 [ 52%]

...分辨率,居然好了 //Laya3D.init(320, 568, true); Laya3D.init(400, 600, true); 但是……为啥…… Laya_Aaron • 2019-02-20 10:54 @栗子猫大王:那个分辨率比例不大对

来源: Laya_社区 发布时间: 20190215

240. 微信开放数据域加载图片后报错 Cannot read property 'USER_DATA_PATH' of undefined [ 52%]

...    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