大约有 51 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
...s.searchButton(child); } } } //处理按钮缩放事件 onButtonScaleEvent(target: Laya.Button) { target.on(Laya.Event.MOUSE_DOWN, this, this._onScaleBtnDown); target.on(Laya.Event.MOUSE_UP, this, this._onScaleBtnOut); } //按钮放大 _onScaleBtnDown(e: Laya.Event) { console.log("开始缩放"); e....
来源: Laya3.0_文档 发布时间: 20251010
...f(e.type=="click") { //如果点击的对象是button类型 if(e.target is Button) { if(HostData.gold>HostData.array[index].gold){ //我的金币是否满足购买条件 HostEvent.I.event(HostEvent.LICKLOAD,["是否花费"+HostData.array[index].gold+"个金币购买该角...
来源: Laya_社区 发布时间: 20180522
...hrome出现错误: Error processing launch: Error Could not attach to main target 关于使用matterjs物理引擎鼠标问题 btn 鼠标移动上去默认文本颜色是绿色,我想换成其他颜色,如何操作? 摄像机跟随刚体移动,刚体出现抖动。 启动引擎报错 mPlugin...
来源: Laya_社区 发布时间: 20170112
...atue == true) { if ((card_A == -1) && (card_B == -1)) { card_A = e.target.name; button[card_A].color = "red"; } else if ((card_A != -1) && (card_B == -1)) { card_B = e.target.name; if ((g_list_A.indexOf(button[card_A].text) != -1) && (g_list_A.indexOf(button[card_A].text) == ...
来源: Laya_社区 发布时间: 20160623
...his._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.garbageCollection(); break; } /** * @pr...
来源: Laya2.0_文档 发布时间: 20210715
...Controll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//相机与目标的水平距离参数 public smooth: number = 2;//...
来源: Laya3.0_文档 发布时间: 20251010
...的简单代码: this.a6.on("click",this,onB);function onB(e) { etg = e.target; etg.color = "#ff0000"; } 2016-06-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: kangge @kang...
来源: Laya_社区 发布时间: 20160606
...Event):void { _castType++; _castType %= 2; switch (_castType) { case 0: (e.target as Button).label = "释放显存"; loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (_scene)//_scene不为空表示场景已加载完成 garbageCollection(); break; } /** * @private 销毁场...
来源: Laya2.0_文档 发布时间: 20210715
...his._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.garbageCollection(); break; } /** * @pr...
来源: Laya2.0_文档 发布时间: 20210715
...r params:URLVariables = new URLVariables(); params.decode( evt.target.data ); execute( params ); } private var execute:Function; } iLoader.as package { import com.legend.loader.BasicLoader; import com.legend.loader.SWFLoader; impor...
来源: Laya_社区 发布时间: 20200217