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

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

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

... info.fontSize = 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...

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

212. laya.display.Graphics [ 77%]

...false):void 清空绘制命令。 Graphics  clipRect(x:Number, y:Number, width:Number, height:Number):void 设置剪裁区域,超出剪裁区域的坐标不显示。 Graphics  destroy():void 销毁此对象。 Graphics  drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* =...

来源: laya_api 发布时间: 20170929

213. Laya2.4版本,场景内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 77%]

...{         public static  uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]};        ...

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

214. laya.ui.UIGroup_API3.0 [ 77%]

...ouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCa...

来源: Laya3.0_api 发布时间: 20231115

215. laya.d3.core.scene.Scene [ 77%]

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

来源: laya_api 发布时间: 20170929

216. UI-RefreshList [ 77%]

...加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseBox.bgColor = "#ffffff"; // 加载进度条 this.refreshLoading = new Box(); this.refreshLoading.pos(133, 0); this.refreshLoading.bottom = 10; this.refr...

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

217. 关于ui的延迟计算 [ 77%]

...关的链接 提交 1 个回复 Victor 赞同来自: 直接上代码label.width = NaN; label.text = "set the label width to NaN before set text pro"; console.log(label.width); 在ui里可以不设置Label对象的wdith属性达到自适应宽度的效果(不设置属性不等于设置属性0)...

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

218. 如何实现聊天图文混排的聊天 气泡背景效果? [ 77%]

...ml里是这样写的 <span>右边</span>     <div style="width:422px;">         <img style= " display:inline;  float:right; " src="Face/img_duihua_qipao_green_01.png "></img>                  <div style="background:url(Face/img_duihua_qipao_gree...

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

219. 寻路系统(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 76%]

...AStar网格 */ private createGridFromAStarMap(texture):void { var textureWidth = texture.width; var textureHeight = texture.height; //读取图片像素 var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; //像素值黑色不可通行,白色部分可以通行 for (var w = 0;...

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

220. laya.ui.Box [ 76%]

...d-only] 对象的显示高度(以像素单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴...

来源: laya_api 发布时间: 20170929