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

大约有 904 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)

331. Maximum call stack size exceeded [ 75%]

...ain);         }     }     GameConfig.width = 640;     GameConfig.height = 1136;     GameConfig.scaleMode ="fixedwidth";     GameConfig.screenMode = "none";     GameConfig.alignV = "top";     GameConfig.alignH = "left";     GameConfig.startScene = "main.scene";     GameConfig.sc...

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

332. 陀螺仪与加速计(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 75%]

...50;  info.color = "#FFFFFF";  info.size(Laya.stage.width, Laya.stage.height);  Laya.stage.addChild(info);     Gyroscope.instance.on(Event.CHANGE, this, onDeviceorientation); }   private function onDeviceorientation(absolute:Boolean, rotationInfo:RotationInfo):void  {  info.text = ...

来源: Laya2.0_文档 发布时间: 20210714

333. 怎么获取图片的原始宽高 [ 75%]

..._img.skin = "ui/bg.jpg"; this.bg_img.width = Laya.stage.width; this.bg_img.height = Laya.stage.height; Image使用skin修改显示,改变宽高时,会拉伸显示内容 2018-01-24 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 weinia...

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

334. HTML文本 · LayaAir3.0文档 · LAYABOX [ 75%]

...、颜色不同3.3 获取html文本的实际宽高(contextWidth、contextHeight)3.4 设置文本的水平居中对齐(align需要和width配合使用)3.5 实现超链接3.6 实现html页面跳转3.7 为HtmlDivElement设置行间距,leading属性,注意,必须设置valign=’middle’3.8 ...

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

335. 创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 [ 75%]

创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 如题 2017-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: 你是说在ID...

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

336. 圆环不跟随 sprite 一起缩放? [ 74%]

...序入口 class GameMain{ constructor() { Laya.init(Browser.width, Browser.height, WebGL); this.CreateCircle(); // this.CreateRectangle(); } private firstSp: Laya.Sprite; private _adaptSp: Laya.Sprite; private _pointList : Point[]; private _rootSp : Laya.Sprite;  public CreateCircle() { this._rootS...

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

337. 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 [ 74%]

...; } } miniMap.src=url;     function circle_image(img, oldImgWidth, oldImgHeight) { var width, height, canvas, contex, circle; if (img.width > img.height) { width = img.height; height = img.height; } else { width = img.width; height = img.width; } canvas = document.createElement('canvas'); if (!...

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

338. textInput的单行输入&多行输入(ActionScript-LayaAir基础篇(AS3)-文本) [ 74%]

...位置。 textInput.width = 300;//设置 textInput 的宽度。 textInput.height = 200;//设置 textInput 的高度。 textInput.bgColor = "#c30c30"; Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } private function Text_InputMultiline():void { var textInput:TextInput = new ...

来源: Laya2.0_文档 发布时间: 20210715

339. 官方新手游戏引导示例中关于hit和unHit的使用疑问 [ 74%]

...a = new HitArea(); hitArea.hit.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); guideContainer.hitArea = hitArea; guideContainer.mouseEnabled = true; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000");我的理解是给父容器guideContainer(包...

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

340. 精灵 · LayaAir3.0文档 · LAYABOX [ 74%]

...理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y = Laya.stage.height/2; this.sprite.size(512, 313); //大小 this.sprite.width = 512; //宽、高分别设...

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