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

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

161. LayaBox HelloWorld实战 [ 67%]

...拖拽到场景中,修改它的通用属性var为btnShow,常用属性label为helloworld   经过这两步我们的游戏场景就大功告成了。 第三步:我们把窗口切换到IDE的代码模式,在src目录下面新建一个scripts的文件夹,在scripts文件夹右键-》新建模...

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

162. laya.ui.Radio_API3.0 [ 67%]

...ScaleX globalScaleY graphics gray height hideFlags hitArea iconOffset is3D label labelAlign labelBold labelColors labelFont labelPadding labelSize labelStroke labelStrokeColor labelVAlign left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollR...

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

163. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 67%]

...icButton.on(Event.CLICK, this, this.onPlayMusic); }  private createButton(label: string): Sprite { var w: number = 110; var h: number = 40;  var button: Sprite = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei...

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

164. 请问ts版本下的Combobox组件,下拉框层级问题,是不打算改了吗? [ 67%]

...ya.Image('comp/bg.png'); let cbx = new Laya.ComboBox('comp/combobox.png', 'label1,label2'); cbx.selectedIndex = 0; let dialog = new Laya.Dialog(); dialog.addChild(img); dialog.addChild(cbx); dialog.popup(); romeo211 • 2017-04-25 22:48 这样就能复现了,原来不需要IDE cuixueying • 2017-...

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

165. laya.ui.TextArea [ 67%]

...nts Packagelaya.uiClasspublic class TextAreaInheritanceTextArea TextInput Label UIComponent Sprite Node EventDispatcher Object TextArea 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By act...

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

166. laya3d动态生成文字贴给模型材质时只有背景颜色生效 [ 67%]

...示正常的,贴在材质上就只剩下背景颜色了   var te: Laya.Label = new Laya.Label("test"); te.fontSize = 200; te.color = "#000000"; te.bgColor = "#d90f0b";  jm.albedoTexture = te.size(500, 500).drawToCanvas(500, 500, 0, 0).getTexture() 附件 : --> 2019-07-24 添加评论 免费帖 -...

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

167. laya.ui.RadioGroup_API3.0 [ 67%]

...radioGroup.pos(100, 100);//设置 radioGroup 的位置信息。 radioGroup.labels = "item0,item1,item2";//设置 radioGroup 的标签集。 radioGroup.skin = "resource/ui/radio.png";//设置 radioGroup 的皮肤。 radioGroup.space = 10;//设置 radioGroup 的项间隔距离。 radioGroup.selectHand...

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

168. 关于@prop {name:Tab,type:Node} 我觉得好麻烦啊 ,请问一下有别的方法吗 [ 67%]

...可以用下面的指定类型 /** @prop {name:node1,type:Node,acceptTypes:Label}*/ node1:Laya.Label;这样就可以直接用这个类型了,不用as转换一下了 2019-09-20 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 米子吖 ...

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

169. laya.ani.swf.MovieClip [ 67%]

...置。 Node addChildren(... args):void 批量增加子节点 Node  addLabel(label:String, index:int):void 增加一个标签到index帧上,播放到此index后会派发label事件 MovieClip clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node c...

来源: laya_api 发布时间: 20170929

170. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 67%]

..."); //添加组件(脚本) var _script = cube.addComponent(SceneScript); //label用于显示 var _lab = new Laya.Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize = 40; _lab.pos(200,200); Laya.stage.addChild(_lab); //给脚本的加强表现用方法赋值 _script.showM...

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