大约有 462 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0082 秒)
Laya_社区(281) Laya2.0_api(59) laya_api(55) Laya2.0_文档(24) Laya3.0_文档(16) Laya2.0_示例(15) Laya_示例(9) Laya3.0_api(3)
....width / 2, Laya.stage.height / 2); this.switchTexture(); this.ape.on(Laya.Event.CLICK, this, this.switchTexture); } switchTexture() { let monkey = (this.flag = !this.flag) ? monkey1Res : monkey2Res; this.ape.graphics.clear(); this.ape.graphics.drawTexture(monkey, 0, 0); this.ape.size(monkey.width, ...
来源: Laya2.0_示例 发布时间: 20251130
...e; Laya.stage.addChild(this.nsp); this.nsp.on(Laya.Event.CLICK,this,this.drawImg,null) } drawImg(e:Event=null):void{ var copySpr:Laya.Sprite=new Laya.Sprite(); copySpr.texture=this.nsp.drawToTexture(1600,1600,0,0) as Laya.Texture; ...
来源: Laya_社区 发布时间: 20220809
...audio/梅林茂 - 静かな古都.mp3", 0); this.login_game_button.on(Laya.Event.CLICK, this,this.onStartButtonClick); } onStartButtonClick(){ // 创建Video元素 let videoElement = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElement); videoElement.style.zInddex...
来源: Laya_社区 发布时间: 20181124
...宽高并刷新显示! package { import laya.display.Sprite; import laya.events.Event; import laya.ui.Button; import laya.ui.Panel; import laya.utils.Browser; import laya.utils.Handler; public class LayaUISample { public function LayaUISample() { // 不支持WebGL时自动切换至Canvas Laya.init...
来源: Laya_社区 发布时间: 20170601
... name: "", inspector: "Buttons", options: { buttons: [{ caption: "生成", event: "click_start_gen" }] } } ] } ]); Editor.extensionManager.createSettings("SplitAtlasSetting", "project"); } } 2025-07-23 0 0 分享 微博 QZONE 微信 LayaAir小牛 赞同来自: 方法为Editor.showOpenDialog 2025-07-...
来源: Laya_社区 发布时间: 20250702
...论坛并没有明确的引入方案,小白就更不懂了 有没有Laya.Event.CLICK的相关说明文档 Laya.URL.basePath 相关 .bat脚本能调用layaIDE的相关功能吗? as3.0下3D引擎中通过滑动控制camera的问题 问题状态 最新活动: 2018-03-28 20:27 浏览: 796 关注: 2 ...
来源: Laya_社区 发布时间: 20180328
...ction Controller() { Controller.super(this); this.btn.on(Event.CLICK,this,function(){ this.destroy(); }) } Laya.class(Controller, "Controller", stUI); 2018-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20180831
...的? 2018-04-18 0 0 分享 微博 QZONE 微信 Supermang42 赞同来自: Event.DOUBLE_CLICK 2018-04-18 0 0 分享 微博 QZONE 微信 w1114367261 赞同来自: 2018-04-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zxcmht310 ...
来源: Laya_社区 发布时间: 20180418
...hildAt(root, 0); Laya.Physics.I.worldRoot = root; Laya.stage.on(Laya.Event.CLICK, this, () => { Laya.Physics.I.worldRoot.x -= 50; }); 设置worldRoot = 一个新的sprite后, 移动world root ,物理世界不会跟着一起移动 2018-11-26 添加评论 免费帖 --> 分享 微博 QZ...
来源: Laya_社区 发布时间: 20181126
...gle=new Rectangle(-420,-680,420,680); mArmature.hitArea=rect; mArmature.on(Event.CLICK,this,onClick); 2016-11-22 0 0 分享 微博 QZONE 微信 asdf131 赞同来自: 于一个点为中心播放 : this.mArmature = this.mFactory.buildArmature(0); this.mArmatureSpr.addChild(t...
来源: Laya_社区 发布时间: 20161122