大约有 3,990 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0063 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
...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
...有问题? /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
...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
....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
...法示例仅做参考,视项目情况自行修改或拓展 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
...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
...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
...对象需要除起始点x,y之外其他点的相对位置,如图 可是var zhangai1 = tiledMap.getLayerObject("Object","zhangai1");拿到障碍物后只能取到起始点的x和y值,拿不到其他坐标,请问这个怎么处理,对象层的对象拿不到多边形的各个坐标也是很蛋...
来源: Laya_社区 发布时间: 20180715
重复背景,全方向地图拖动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
...载需要的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