大约有 3,272 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0061 秒)
...令行方式执行) let useIDENode = process.argv[0].indexOf("LayaAir") > -1 ? true : false; //获取Node插件和工作路径 let ideModuleDir = useIDENode ? process.argv[1].replace("gulp\\bin\\gulp.js", "").replace("gulp/bin/gulp.js", "") : ""; let workSpaceDir = useIDENode ? process.argv[2].re...
来源: Laya_社区 发布时间: 20181221
...也可以是一个序列帧动画(atlas文件)的url。 文本处理:GTextField、GTextInput GTextField用于显示静态文本,是对引擎Text类的封装,支持显示普通文字、富文本、图文混排等。 GTextInput用于接收用户输入的文本,是对引擎Input类的封装...
来源: Laya3.0_文档 发布时间: 20251010
...eturn this.s_instance; } private init() { } private skins: Array<string>; private mapImg:Laya.Image; private constructor() { } public GetMap():Laya.Image { if(this.mapImg==null) { this.mapImg=new Laya.Image(); } return this.mapImg; } public LoadMapResource() { this.skins=[ "res/img/map/1.jpg",...
来源: Laya_社区 发布时间: 20171124
...r blurFilter = new Laya.BlurFilter(); //设置模糊强度 blurFilter.strength = 5; //在坐标280,50创建位图 var img = createImg(420,280); //添加滤镜效果 img.filters = [blurFilter]; } 附件 : --> 2017-08-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20170811
.../t1.json", "res/tiledMap/2201001.png"], Laya.Handler.create(this, () => // // { // this.tiledMap.createMap("res/tiledMap/t1.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded)); // conso...
来源: Laya_社区 发布时间: 20201230
...些动态属性而已,具体如下: 1.在库中新建影片剪辑,右键-->组件定义. 2.点"+ "号,定义一个speed属性. 3.拖入到舞台,把speed改为任意值,不能是默认的. 4.在时间轴第一帧,如下图所示,调试输出 5.用layaFlash编译,输出的是undefined 2016-04-08 0...
来源: Laya_社区 发布时间: 20160407
...只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createvbox(); // 添加VBox组件 this.owner.addChild(this.vbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins); this.btn2 = new Laya.Button(this.sk...
来源: Laya3.0_文档 发布时间: 20251010
...nnected"); // 发送字符串 this.socket.send("demonstrate <sendString>"); // 使用output.writeByte发送 var message: string = "demonstrate <output.writeByte>"; for (var i: number = 0; i < message.length; ++i) { // 直接写缓冲区中的数据 this.output.writeByte(message.charCo...
来源: Laya3.0_文档 发布时间: 20250104
...le.log(generatedPosition); } // consumer.destroy(); } main().catch(error => console.log(error.message)); 6、在cmd中运行:node convertSourceMap.js "at t.ClearYeMan (http://cangqiong.17dawan.com/v ... 341015)" "F:\\jenkins_workspace\\branch\\0707\\release\\sourcemaps\\js\\bundl...
来源: Laya_社区 发布时间: 20190528
... 在Laya中使用Matter需要在index.html的“<!--jsfile--startTag-->”标签前面添加下面的引用 (libs/matter.js 和libs/LayaRender.js) 然后创建一个Matter_getStart.js (代码如下)var Matter = window.Matter; // module aliases var Engine = Matter.Engine, Render = Ma...
来源: Laya_社区 发布时间: 20170905