大约有 238 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0047 秒)
Laya_社区(139) Laya3.0_api(38) Laya2.0_文档(18) laya_api(15) Laya2.0_api(15) Laya3.0_文档(10) Laya2.0_示例(2) Laya_示例(1)
...conOffset : String图标x,y偏移,格式:100,100Button label : String 按钮的文本内容。 Button labelAlign : String标签对齐模式,默认为居中对齐。Button labelBold : Boolean 表示按钮文本标签是否为粗体字。 Button labelColors : String 表示按钮各个状态...
来源: Laya2.0_api 发布时间: 20190513
...会触发的回调函数处理器。 回调函数参数为用户点击的按钮名字name:String。 Dialog comXml : Object XML 数据。 Component customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Spri...
来源: laya_api 发布时间: 20170929
...Monkey_clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { this.camera.removeAllLayers(); this.layerIndex ++; this.camera.addLayer(this.layerIndex%4 +1); this.camera.addLayer(5); }); ``` :void { this.camera.removeAllLayers(); this.layerIndex ++; this.camera.addLayer(this.layerIndex%4 +1); this.camera.addLayer(5); }); ``` :void { camera.removeAllLayers(); layerIndex ++; camera.addLayer(layerIndex%4 +1); camera.addLayer(5); }); ``` (图1)
来源: Laya2.0_文档 发布时间: 20210715
... 2 人 suone • 2017-02-17 18:01 不是autio的问题,在网页上放个按钮是可以触发播放事件的 ,, 但代码放在laya里在手机上就不行,,很纳闷。。
来源: Laya_社区 发布时间: 20170217
...加载后的回调onLoaded里,我们保留初次显示UI的逻辑。将按钮监听,以及页面切换等逻辑放到b.ts里。 分出的b.ts代码如下所示: ```javascript /** * 分包 */ module subpackage{ export class b{ private GameMain:any; private ui:any; constructor(){ //监听按钮b...
来源: Laya2.0_文档 发布时间: 20210715
...页面显示出来就是模式对话框吗,只能点自己做好的关闭按钮才能关闭,点其他地方包括黑底都没有,但我这边按照教程做出来的点了黑底会自动关闭,是现在改成这样了,还是我哪里没设置好,求解答 附件 : --> 2017-09-12 添...
来源: Laya_社区 发布时间: 20170912
...: ```javascript //显示A页 function showA() { showUI(aUI,UI) //监听按钮btnA的点击事件,触发后处理 UI.btnA.on(Laya.Event.CLICK, this, showB); } ``` 代码分出后,我们不要忘了在主包内调用微信小游戏官方提供的分包加载与回调通知方法。在示例项...
来源: Laya2.0_文档 发布时间: 20210715
...摆放了胶囊体,圆柱体,正方体3个物体,通过鼠标点击按钮切换注视目标。 ```typescript //up向量 private var _up:Vector3 = new Vector3(0, 1, 0); ``` ```typescript //点击事件 changeActionButton.on(Event.CLICK, this, function():void{ index++; if (index % 3 === 1 ){ //...
来源: Laya2.0_文档 发布时间: 20210714