大约有 4,034 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0080 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...nt; public var isCd:Boolean = false; public function CdSprite() { super(); this.scrollRect = rect; this.alpha = 0.85; } public function setSize(bian:int):void{ r = bian / Math.SQRT2; rect = new Rectangle(0,0,bian,bian); this.scrollRect = rect; pos = bian * 0.5; } public function set360(value:int):vo...
来源: Laya_社区 发布时间: 20171124
...Laya.loader.load([{url:"res/atlas/comp.json",type:"atlas"}],Handler.create(this,this.onLoadUi)); } __proto.onLoadUi=function(){ Laya.timer.loop(100,this,this.onLoaded); } __proto.onLoaded=function(){ if(this.isOpen){ return; } this.isOpen=true; var testView=new TestView(); Laya.stage.addChild(testVi...
来源: Laya_社区 发布时间: 20190517
.../LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 115, 150); }); var _quaternion = new Laya.Quaternion(); var _position = ne...
来源: Laya_示例 发布时间: 20250225
...x.resume() gameex.gameInfo.visible = true; gameex.bar.destoyRankSprite() this.nCountDown = 15; // console.log(gameex.snakeSelf) } }) //暂停 GameEx.prototype.pause = function () { console.log("停止播放音乐") Laya.SoundManager.stopMusic(); //停止游戏主循环 Laya.timer.clear(this,...
来源: Laya_社区 发布时间: 20180514
...yer)): ```typescript //添加显示图层(为相机添加一个蒙版) this.camera.addLayer(5); //设置蒙版(所属图层) layaMonkey_clone1.layer = 2; layaMonkey_clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK,...
来源: Laya2.0_文档 发布时间: 20210715
...yer)): ```typescript //添加显示图层(为相机添加一个蒙版) this.camera.addLayer(5); //设置蒙版(所属图层) layaMonkey_clone1.layer = 2; layaMonkey_clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK,...
来源: Laya2.0_文档 发布时间: 20210715
...; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); originalApe.x = (Laya.stage.width - apeT...
来源: Laya_示例 发布时间: 20250225
...件脚本中,使用此场景中已经勾选过的UI组件,直接使用this.即可使用。例如下面的代码: onAwake(): void { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } 运行此场景来看看效...
来源: Laya3.0_文档 发布时间: 20250217
如何停止重复执行Laya.timer.frameLoop(1,this,onDrag); 如何让重复执行的函授停止,比如Laya.timer.frameLoop(1,this,onDrag);中的onDrag。谢谢~ 2017-02-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2...
来源: Laya_社区 发布时间: 20170223
... = Laya.Shader3D.propertyNameToID("u_ZDistance"); constructor() { super(); this.setShaderName("CustomCurveShader"); this.enableVertexColor = false; this.albedoColor = new Laya.Vector4(0.0, 0.0, 0.0, 0.0); this.xoffset = 15.0; this.yoffset = -15.0; this.zdistance = 200.0; } public static initShader()...
来源: Laya_社区 发布时间: 20201009