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

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

3701. image在相应loaded的时候,无法正确获取高度 [ 47%]

...init", this.x, this.y, this.width, this.height, this.scaleX, this.scaleY); var createOption: any = { isStatic: false, }; this.matterBody = Matter.Bodies.rectangle(this.x, this.y, this.width, this.height, createOption); Matter.World.add(GameMain.instance.engine.world, this.matterBody); this.matterBod...

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

3702. mac下用FB打包发布测试页面,chrome浏览器看不到预期显示文字 [ 47%]

...有问题?   /LayaAirTest/src/LayaAirTest.as (8):warning:Laya.init This variable is not defined. /LayaAirTest/src/LayaAirTest.as (9):warning:Laya.timer.currTimer This variable is not defined. /LayaAirTest/src/LayaAirTest.as (20):warning:Laya.stage.bgColor This variable is not defined. /LayaAirTes...

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

3703. Label属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 47%]

...lor: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } Laya.sta...

来源: Laya2.0_文档 发布时间: 20210715

3704. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 47%]

....cacheTexture.getPixels(0,0,120,120) } } } Laya.init(400, 640, Laya.WebGL) var app=new Main.MaskDemo() Laya.timer.frameOnce(5, app, ()=>{ app.init() Laya.timer.frameLoop(2, app, app.getPixels) }) 2017-12-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

3705. 发布微信小游戏json格式问题 [ 47%]

...法示例仅做参考,视项目情况自行修改或拓展 public static var getUrlAndEncode:Function = function(url:String,type:String):String { if (url.indexOf(".fnt") != -1 || url.indexOf("xxx.json") != -1) { return "utf8"; } else if (type == "arraybuffer") { return ""; } return "ascii"; } 2018...

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

3706. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 47%]

...ls.Handler; import laya.webgl.WebGL; public class UI_ProgressBar { private var progressBar:ProgressBar; public function UI_ProgressBar() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对...

来源: Laya2.0_文档 发布时间: 20210715

3707. 关于项目分包的问题?? [ 47%]

...aleMode = StageScaleMode.NO_SCALE; this.stage.align = StageAlign.TOP_LEFT; var loginView:LoginView = new LoginView(); this.addChild(loginView); } } } 提示:你需要确定4步 1、导入的fb(或 fd)项目,找到LoginView,手动调整分包的js文件路径(由于分包期间做过调...

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

3708. 关于matter.js用于tiledmap的碰撞 [ 47%]

...对象需要除起始点x,y之外其他点的相对位置,如图 可是var zhangai1 = tiledMap.getLayerObject("Object","zhangai1");拿到障碍物后只能取到起始点的x和y值,拿不到其他坐标,请问这个怎么处理,对象层的对象拿不到多边形的各个坐标也是很蛋...

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

3709. 重复背景,全方向地图拖动Demo [ 47%]

重复背景,全方向地图拖动Demo UI创建4个image  var分别: map0,map1,map2,map3 背景图宽高 1800 class WorldPage extends ui.WorldPageUI{ constructor (x,y) { super() this.maxX = 149850 this.maxY = 97500 this.offsetX = x * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY ...

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

3710. 按时间清理Laya.pool中缓存对象, 游戏大厅缓存问题 [ 47%]

...载需要的js的 cwugs • 2018-06-11 11:53 private loadJs(jsPAth, fun) { var new_element1 = document.createElement("script");//创建新的script节点 new_element1.setAttribute("type", "text/javascript"); // new_element1.setAttribute("src", jsPAth); //LayaN...

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