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

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

361. 屏幕方向:自动横屏与自动竖屏的设置详解(JavaScript-LayaAir基础篇(JS)-屏幕适配) [ 50%]

... "res/monkey2.png"; Laya.stage.addChild(img); //文字 var text = new Laya.Label(); text.text = "游戏的水平方向"; text.color = "gray"; text.fontSize = 100; text.centerX = 0; text.centerY = 50; Laya.stage.addChild(text); } Laya.init(0, 0, Laya.WebGL); Laya.stage.scaleMode = "full"; Laya.stage....

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

362. Morn下List组件如何给每一条列表添加Click事件,是需要for吗? [ 50%]

...super(); var arr:Array=[]; for(var i:int=0;i<95;i++) { arr.push({icon:i,label:"Index"+i}); } boxList.array=arr; boxList.mouseHandler=new Handler(listRender); } private function listRender(e:MouseEvent,index:int):void { // TODO Auto Generated method stub if(e.type==MouseEvent.CLICK) { if(index==2)...

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

363. laya.ui.ComboBox [ 50%]

...oBox  itemSize : int 下拉列表项标签的字体大小。 ComboBox  labelBold : Boolean 表示按钮文本标签是否为粗体字。 ComboBox  labelColors : String 获取或设置对 ComboBox 组件所包含的 Button 组件的文本标签颜色。 格式:upColor,overColor,downColor,disa...

来源: laya_api 发布时间: 20170929

364. 龙骨skeleton鼠标点击区域的设置 [ 50%]

...tureSpr.addChild(this.mArmature);         this.mArmature.on(Laya.Event.LABEL, this, this.onEvent);         this.mArmature.on(Laya.Event.STOPPED, this, this.completeHandler);         this.play();         let bound: Laya.Rectangle = this.mArmature.getBounds();         this.mArmatur...

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

365. laya.physics.RigidBody_API3.0 [ 50%]

...Index Constructors constructor Properties _extra _singleton category group label mask owner runInEditor scriptPath Accessors allowRotation allowSleep angularDamping angularVelocity awaked body bullet destroyed enabled gravityScale hideFlags id linearDamping linearVelocity type Methods _getOriBody _i...

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

366. laya.ui.Button [ 50%]

... Sprite  iconOffset : String图标x,y偏移,格式:100,100Button  label : String 按钮的文本内容。 Button  labelAlign : String标签对齐模式,默认为居中对齐。Button  labelBold : Boolean 表示按钮文本标签是否为粗体字。 Button  labelColors : String 表...

来源: laya_api 发布时间: 20170929

367. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 50%]

...设置公用属性var为tab,用于程序调用控制。设置常用属性labels为“雪人,糖罐,绿树”, 选择的按钮索引selectedIndex 为0。再设置其他属性中的字体大小、粗体、字体状态颜色等。 ​ 显示效果如图6所示: ​ ![图片6.png](img/6.png) ​ ...

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

368. laya.display.FrameAnimation [ 50%]

...onent):* 添加组件实例。 Node addInputChild(node:Node):NodeNode addLabel(label:String, index:int):void 增加一个帧标签到指定索引的帧上。当动画播放到此索引的帧时会派发Event.LABEL事件,派发事件是在完成当前帧画面更新之后。 AnimationBase callLa...

来源: Laya2.0_api 发布时间: 20190513

369. [LayaAirIDE3]VBox布局组件没有中间居中的选项 [ 49%]

...ist 组件列表渲染异常 layaair3.1.3版本打出的项目中的text与label组件在vivo小游戏引擎1105及以下文字显示异常 分享,扩展Laya.Text组件实现简单的富文本 编辑器Tree组件树节点渲染回调两次 3d项目-unity添加物理组件 layanative2 打包android...

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

370. HTMLDivElement 2.0 只有单行内容是 水平排版不居中 [ 49%]

...因? 如何清除sharedCanvas上一次绘制的内容 资源编辑器的label控件的垂直居中有问题 fixed_height时不居中 对齐模式选居中 没效果 Laya2.20bata4版本使用HTMLDivElement报错 drawTexture时,Matrix对象,a=-1,无法实现水平翻转 问题状态 最新活动...

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