大约有 1,218 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)
Laya_社区(677) Laya3.0_api(153) laya_api(104) Laya2.0_api(96) Laya2.0_文档(63) Laya2.0_示例(44) Laya_示例(42) Laya3.0_文档(39)
... 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
...代码来获取失败信息,但貌似没有效果的: this.avatar.on(Event.ERROR, this, function() { console.log('loaded fail'); }); 2017-09-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ybs1905com 赞同...
来源: Laya_社区 发布时间: 20170928
...ag值不能赋值sh使用吗? masterbtn.tag = 0; masterbtn.on(Laya.Event.MOUSE_UP,this,this.onItemMaster); _proto.onItemMaster = function(params){ var btn = params.currentTarget; console.log("----------------------- ",btn.tag);//我赋值是0,但这里调用获取是2?? } 2017-11-20 ...
来源: Laya_社区 发布时间: 20171120
...代码,了解这两个方法的使用。 ```java package { import laya.events.Event; import laya.map.TiledMap; import laya.maths.Rectangle; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class TiledMapDemo { private var tMap:TiledMap; private var scaleValue:N...
来源: Laya2.0_文档 发布时间: 20210714
...mLock = java.lang.Object@371aea59, mLastTimeSender = 0} D/IC5 ( 4543): readEventLogs : User_activity-->1489977325537753559 :com.yunos.tv.homeshell D/IC5 ( 4543): readEventLogs : am_on_paused_called--> packnameString = 1489977325752612684 :com.yunos.tv.homeshell D/IC5 ( 4543): readEventLogs : a...
来源: Laya_社区 发布时间: 20170320
...layabox. ... DForm 1、constructor里的最后一行: Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements, [emailInput, birthdayInput, passwordInput]); 当stage调整尺寸时,对3个input位置进行调整,当初次运行时,3个input框排在网页左上角,必须手动改变一...
来源: Laya_社区 发布时间: 20221205
...tCreateURL _setGPUMemory addDefine clone cloneTo destroy effectiveProperty event getBool getBoolByIndex getBuffer getBufferByIndex getColor getColorByIndex getFloat getFloatByIndex getInt getIntByIndex getMatrix4x4 getMatrix4x4ByIndex getShaderData getShaderDataByIndex getShaderPropertyValue getText...
来源: Laya3.0_api 发布时间: 20231102
...uctor() { super(); this.btnStart.on(Laya.Event.CLICK, this, this.startGame); } startGame(): void { //Laya.Scene.open("GameView.scene"); if (!Main.gameView) { Main.gameView = new GameView(); ...
来源: Laya_社区 发布时间: 20190510
...-25 0 6 分享 微博 QZONE 微信 水晶 赞同来自: this.input.on(Laya.Event.FOCUS,this,()=>{ this.board.scrollPane.touchEffect = false; }) this.input.on(Laya.Event.BLUR,this,()=>{ this.board.scrollPane.touchEffect = true; }) 2019-03-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 ...
来源: Laya_社区 发布时间: 20180612
...的时候 才监听 move事件的话! onMouseDown 中 Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); onMouseUp 中 Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); 也可以写个变量 ,down的时候为true,否则为false 如"cuixueying" 回答的一样! 2017-04-21 ...
来源: Laya_社区 发布时间: 20170421