大约有 914 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)
Laya_社区(546) Laya2.0_示例(94) Laya_示例(90) Laya2.0_文档(79) Laya3.0_api(62) Laya3.0_文档(41) laya_api(1) Laya2.0_api(1)
...d(rect); updateRectPos(); } function updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_EXTRACT_FIT { private rect: Sprite; constructor() { Laya.init(550, 400); La...
来源: Laya_示例 发布时间: 20260303
...awCanvas 的一个bug drawCanvas(canvas: HTMLCanvas, x: number, y: number, width: number, height: number): void { if (!canvas) return; var src: Context = canvas.context as Context; var submit: ISubmit; if (src._targets) { //生成渲染结果到src._targets上 /* this._submits[this._submits._length+...
来源: Laya_社区 发布时间: 20210527
...于增加地板,新地板产生条件是前一个旧地板(this.x + this.width) < this.maxRight,this.x初始都是852,是正数,this.width是旧地板宽度也是正数,所以只有当前一个旧地板的this.x等于负值时等式才会成立,也就是前一个旧地板有部分图形...
来源: Laya_社区 发布时间: 20180329
.... /// </summary> public center: Transform3D; /// <summary> /// Width of area. /// </summary> public width: number; /// <summary> /// Length of area. /// </summary> public length: number; /// <summary> /// Constructor. /// </summary> /// <param name="cente...
来源: Laya_社区 发布时间: 20190224
....progressBar = new ProgressBar("res/ui/progressBar.png"); this.progressBar.width = 400; this.progressBar.x = (Laya.stage.width - this.progressBar.width) / 2; this.progressBar.y = Laya.stage.height / 2; this.progressBar.sizeGrid = "5,5,5,5"; this.progressBar.changeHandler = new Handler(this, this.onC...
来源: Laya2.0_文档 发布时间: 20210715
...烁 this.mapBg = new Laya.Sprite(); this.mapBg.name = "map"; this.mapBg.width = GameMain._width; this.mapBg.height = GameMain._height; this.mapBg.x = 0; this.mapBg.y = 0; this.mapBg.graphics.fillTexture(texture, 0, 0, GameMain._width, GameMain._height); this.map.addChild(this.mapBg); 问题...
来源: Laya_社区 发布时间: 20170903
...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 2017-01-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 zhpr613 赞同来自: cuix...
来源: Laya_社区 发布时间: 20170104
...eMap("res/tiledMap/perspective_walls.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } } new TiledMap_PerspectiveWall();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import Browser = Laya.Browser; import WebGL = L...
来源: Laya2.0_示例 发布时间: 20260303
..."child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"props":{"x":401,"y":56,"skin":"comp...
来源: Laya_社区 发布时间: 20170330
... * @param y 开始绘制的 Y 轴位置。 * @param width 矩形宽度。 * @param height 矩形高度。 * @param round 矩形圆角半径。 * @param fillColor 填充颜色,或者填充绘图的渐变对象。 ...
来源: Laya_社区 发布时间: 20210123