• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4,034 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0080 秒)

671. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 91%]

...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

672. 百度小游戏 内存不断增大的情况 [ 91%]

...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

673. 灯光-聚光 [ 91%]

.../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

674. 在微信分享成功的回调函数里,Laya播放音效失败。 [ 91%]

...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

675. Sprite3D的Layer(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 91%]

...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

676. Sprite3D的Layer(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 91%]

...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

677. 滤镜-颜色滤镜 [ 91%]

...; 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

678. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 91%]

...件脚本中,使用此场景中已经勾选过的UI组件,直接使用this.即可使用。例如下面的代码: onAwake(): void { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } 运行此场景来看看效...

来源: Laya3.0_文档 发布时间: 20250217

679. 如何停止重复执行Laya.timer.frameLoop(1,this,onDrag); [ 91%]

如何停止重复执行Laya.timer.frameLoop(1,this,onDrag); 如何让重复执行的函授停止,比如Laya.timer.frameLoop(1,this,onDrag);中的onDrag。谢谢~ 2017-02-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2...

来源: Laya_社区 发布时间: 20170223

680. 一个简单的跑酷曲面shader分享 [ 91%]

... = 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