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

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

211. laya.ui.Label_API3.0 [ 77%]

...象的属性 y 的值,用于控制 label 对象的显示位置。 label.width = 300;//设置 label 的宽度。 label.height = 200;//设置 label 的高度。 Laya.stage.addChild(label);//将 label 添加到显示列表。 var passwordLabel:Label = new Label("请原谅我,我不想被人看到...

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

212. 陀螺仪与加速计(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

213. 关于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

214. 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

215. 如何实现聊天图文混排的聊天 气泡背景效果? [ 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

216. 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

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

...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

218. 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

219. 绘制图形的BUG [ 76%]

...0,300); Tween.to(this,{rotation:360},3000); } override public function get width():Number{ return _shape.width; } override public function get height():Number{ return _shape.height; } } } BUG2:package ui.test { import laya.display.Sprite; import laya.events.Event; public class MyBox1 extends Sprite ...

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

220. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 76%]

...rivate function createGridFromAStarMap(texture:Texture):Array { var textureWidth:int = texture.width; var textureHeight:int = texture.height; //读取图片像素 var pixelsInfo:Uint8Array = texture.getPixels(); var aStarArr:Array = new Array(); var index:int = 0; //像素值黑色不可通行,...

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