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

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

401. Text的中划线(删除线) [ 54%]

...          switch (align){                 case 'center':                     x-=lineWidth / 2;                     break ;                 case 'right':                     x-=lineWidth;      ...

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

402. [LayaAir3]打包webgl包,如何设置在手机上打开时,把手机变成横屏 [ 54%]

....SCREEN_HORIZONTAL;             Laya.stage.alignH = Laya.Stage.ALIGN_CENTER;             Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE;              Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; // 强制横屏         } else {             Laya.stage.scaleMode = La...

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

403. 为什么官网示例中关于stage的调用都用Laya.stage的形式 [ 54%]

...age = Laya.stage;     stage.bgColor = "#00ffff";     stage.alignH = "center";     stage.alignV = "middle";     stage.scaleMode = "showall"; })(); 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

404. 网络和格式-XML [ 54%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { let xmlValueContainsError = "item aitem bsomethis..."; let xmlValue = "item aitem bsomethings..."; this.proessXML(x...

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

405. graphics 问题 [ 54%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; showApe(); })(); function showApe() { // 方法1:使用loadImage var ape = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monk...

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

406. 特效LOADED监听不到 [ 54%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); } private function createAnimation(_e:*=null):void { var ani:...

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

407. F5, 运行后提示找不到 Laya类 [ 54%]

...T; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; init(); })(); function init(){ } })();  以下是新建的一个文件 EF_DataProtocol.js:var EF_DataProtocol = function () { EF_DataProtocol.prototype.init = function...

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

408. 舞台的位置怎么自由设定 [ 54%]

...idth-realWidth)*0.5 / pixelRatio;         else if (this._alignH==="center")this.offset.x=(screenWidth-realWidth)*0.5 / pixelRatio;         if (this._alignV==="top")this.offset.y=0;         else if (this._alignV==="bottom")this.offset.y=screenHeight-realHeight;        ...

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

409. ios旋转问题 [ 54%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.bgColor = "none"; Config.atlasEnable = true; if( browerRatio > 0.5 && browerRatio < 0.6 ) { Laya.stage.scaleMode = Stage.SCALE_EXACTFIT ; } else { Laya.stage.scaleMode = Stage.SCALE_SHOWALL; }...

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

410. 有关Laya3D碰撞检测疑问 [ 54%]

...e.addComponent(Laya.SphereCollider) as Laya.SphereCollider; sphereCollider.center = sphere.meshFilter.sharedMesh.boundingSphere.center.clone(); sphereCollider.radius = sphere.meshFilter.sharedMesh.boundingSphere.radius; sphere.name = "球体";  //圆柱体 var cylinder: Laya.MeshSprite3D = scene.ad...

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