大约有 407 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0168 秒)
Laya_社区(228) Laya3.0_api(48) Laya2.0_文档(37) Laya3.0_文档(21) Laya_示例(20) Laya2.0_示例(19) laya_api(17) Laya2.0_api(17)
...拖拽到场景中,修改它的通用属性var为btnShow,常用属性label为helloworld 经过这两步我们的游戏场景就大功告成了。 第三步:我们把窗口切换到IDE的代码模式,在src目录下面新建一个scripts的文件夹,在scripts文件夹右键-》新建模...
来源: Laya_社区 发布时间: 20190117
...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
...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
...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
...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
...示正常的,贴在材质上就只剩下背景颜色了 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
...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
...可以用下面的指定类型 /** @prop {name:node1,type:Node,acceptTypes:Label}*/ node1:Laya.Label;这样就可以直接用这个类型了,不用as转换一下了 2019-09-20 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 米子吖 ...
来源: Laya_社区 发布时间: 20181210
...置。 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
..."); //添加组件(脚本) 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