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

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

1021. 混合模式-Lighter [ 63%]

...目开发更高效。const // 一只凤凰的分辨率是550 * 400 phoenixWidth = 500, phoenixHeight = 400, bgColorChannels = { r: 99, g: 0, b: 0xFF }, gradientInterval = 2000; class BlendMode_Lighter { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya...

来源: Laya2.0_示例 发布时间: 20251209

1022. List滚动条问题 [ 63%]

...mg) { this._goldImage.skin = img; this._goldImage.pos((312-this._goldImage.width)/2, (462-this._goldImage.height)/2); }; this.setPrice = function(price) { this._goldButton.label = "RMB " + price; }; } Laya.class(MarketItem, "xgame.marketitem", _super); })(Laya.Box);list代码如下: var list = new...

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

1023. 求问为什么找不到Laya这个问题? [ 63%]

...t;title>www.layabox.com</title> <meta name='viewport' content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no' /> <meta name="renderer" content="webkit"/> <meta name='apple-mobile-web-app-capable' content='yes' /> <meta name='f...

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

1024. 2D节点使用3D · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...属性面板中,会显示属性信息,如图2-2所示。 (图2-2) Width:渲染纹理的像素宽度。 Height:渲染纹理的像素高度。 Color Format:渲染纹理的颜色格式。 Depth Format:渲染纹理的深度格式。 Generate Mipmap:如果勾选了,则自动生成多...

来源: Laya3.0_文档 发布时间: 20251010

1025. laya.map.GridSprite [ 63%]

...mouseThrough属性。 影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...

来源: laya_api 发布时间: 20170929

1026. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 62%]

...enderOrder = tJsonData.renderorder;             _mapW = tJsonData.width;             _mapH = tJsonData.height;                          _mapTileW = tJsonData.tilewidth;             _mapTileH = tJsonData.tileheight;                        ...

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

1027. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...此方法只执行一次 */ onAwake(): void { this.txtarea.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtarea.size(500, 200); //大小 this.txtarea.pivot(this.txtarea.width/2, this.txtarea.height/2); //轴心点 this.txtarea.text = "大家好,欢迎各位开发...

来源: Laya3.0_文档 发布时间: 20251010

1028. 加载-销毁Texture使用的图片资源 [ 62%]

..../../res/fighter/fighter.atlas"; //初始化引擎 Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.init(); //显示性能统计信息 St...

来源: Laya_示例 发布时间: 20251209

1029. 人物行走图动画 [ 62%]

....log(ani.index);  var bounds = ani.getGraphicBounds();  ani.pivot(bounds.width / 2, bounds.height / 2);    ani.pos(Laya.stage.width / 2, Laya.stage.height / 2);  console.log(ani.index);  Laya.stage.addChild(ani);  console.log(ani.index); }   json代码如下 {"frames": [ {  "filename": "wal...

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

1030. viewportPointToRay产生的射线始终有偏差,是为什么? [ 62%]

...orld(input:Laya.Vector2):Laya.Vector2 { let ratioX = (input.x / Laya.stage.width); let ratioY = (input.y / Laya.stage.height); let clientWidth = Laya.stage.clientScaleX * Laya.stage.width let clientHeight = Laya.stage.clientScaleY * Laya.stage.height   // let singleX = (Laya.Browser.width - clientW...

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