大约有 1,240 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0053 秒)
Laya_社区(920) Laya3.0_api(80) Laya2.0_文档(78) Laya_示例(64) Laya2.0_示例(51) Laya3.0_文档(43) laya_api(2) Laya2.0_api(2)
... function 构造函数() { // 添加鼠标点击事件 Laya.stage.on( Event.MOUSE_DOWN, this, onMouseDown ); // 射线初始化 ray = new Ray( new Vector3(0,0,0), new Vector3(0,0,0) ); } // 鼠标点击方法 function onMouseDown(){ // 获取鼠标在屏幕点击的位置 var po...
来源: Laya_社区 发布时间: 20181220
...器上运行是正常的package { import laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; public class LayaAirTest { public function LayaAirTest() { Laya.init(550,400); var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FFFF00"); Laya.stage.addChild(sp); sp.size(...
来源: Laya_社区 发布时间: 20161215
...添加一个sprite,给sprite添加一个点击事件,this.hitimg.on(Laya.Event.CLICK,this,this.onStart); onStart: _proto.onStart = function(){ console.log(111111122222); $("#fileInput").trigger('click'); } 可以打印数字,但是触发不了input控件。 <input id="fileInput" type="fil...
来源: Laya_社区 发布时间: 20170626
...钮btnA的点击事件,触发后处理 this.GameMain.newUI.btnA.on(Laya.Event.CLICK, this, this.showB); } //显示B页 private showB():void { this.GameMain.showUI(this.ui.bUI,this.GameMain.newUI) //监听按钮btnB的点击事件,触发后处理 this.GameMain.newUI.btnB.on(Laya.Event.CLICK, this...
来源: Laya2.0_文档 发布时间: 20210715
...出错 this.btn_start.visible=false; //监听界面是否关闭 this.once(Event.CLOSE,this,onClose); //加载剩余游戏资源、音乐,加载完成与加载进度回调方法 Laya.loader.load(assetArr,Handler.create(this,onComplete),Handler.create(this,onProgress)) } return GameStart(); })(); ...
来源: Laya_社区 发布时间: 20171123
...mouseHandler 怎么获取条目 如何获取图片每个像素点的RGB? Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 lh文件内meshSprite添加阴影属性无效 怎么获取对象的坐标 怎样获取浏览器地址传过来的GET参数 分享:LayaAir下如何获取图集...
来源: Laya_社区 发布时间: 20200229
...tils.GuideLayer.addChild(this.guideContainer); this.guideContainer.on(Laya.Event.CLICK, this, this.nextStep); this.mouseEnabled = false; var maskArea: Laya.Sprite = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.nam...
来源: Laya_社区 发布时间: 20171222
...mport laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGLContext; import common.CameraMoveScript; import common.Tool; /** * ... * @author */ pub...
来源: Laya_示例 发布时间: 20251218
...代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find"); return; } //保护修改-----en...
来源: Laya_社区 发布时间: 20180907
...ckage { import laya.display.Sprite; import laya.display.Stage; import laya.events.Event; import laya.resource.HTMLCanvas; import laya.resource.Texture; import rain.core.StageReferance; public class Main { private var _view:Sprite; public function Main() { Config.isAntialias = true;//抗锯齿 //初...
来源: Laya_社区 发布时间: 20180319