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

大约有 4,095 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0102 秒)

501. ProgressBar 代码问题 [ 93%]

...码为按钮点击后 出现popup并且模拟进度条加载 按钮代码: this.testLoadingBar_anim.on(Event.CLICK,this,()=>{     var loading : Onloading = new Onloading();     loading.popup(true);     Laya.timer.loop(100, this, loading.changeValue); }); 进度条代码: import Handler = La...

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

502. Sprite-轴心点 [ 93%]

... Laya.stage.height / 2); Laya.stage.addChild(sp2); Laya.timer.frameLoop(1, this, animate); } function animate(e) { sp1.rotation += 2; sp2.rotation += 2; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL...

来源: Laya_示例 发布时间: 20251209

503. 一个按钮注册两次点击事件,两个事件都会执行 [ 93%]

...uojianfei 赞同来自: pc测试啊,一个按钮注册两次必现啊   this.sureBtn.on("click",this,this.onSurebtn); this.sureBtn.on("click",this,this.enterGame);   都会执行啊 2017-04-11 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

504. 我竟然被射线检测这个小功能给难了一天了 [ 93%]

...esult=new Laya.HitResult() physics:Laya.PhysicsSimulation; onAwake():void{ this.camera = this.owner.getChildByName("Main Camera") as Laya.Camera; let scene: Laya.Scene3D = this.owner.scene as Laya.Scene3D;   this.physics=scene.physicsSimulation;     console.log("相机位置",(this.owner.getChild...

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

505. 滤镜-发光滤镜 [ 93%]

...; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, setup)); })(); function setup() { createApe(); applayFilter(); } function createApe() { ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.x = (Laya.stage.width - texture.width) /...

来源: Laya_示例 发布时间: 20251209

506. 材质-BlinnPhong-高光贴图 [ 93%]

...发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); this.specularMapUrl = ["../../res/threeDimen/skinModel/dude/Assets/dude/headS.png", "../../res/threeDimen/skinModel/dude/Assets/dude/jacketS.png", "../../res/threeDimen/skinModel/d...

来源: Laya_示例 发布时间: 20251209

507. 关于list空间的问题 [ 93%]

...s/ui/listskins/1.jpg");     data.push("../../res/ui/listskins/2.jpg"); } this._ui.serverList.vScrollBarSkin = ""; this._ui.serverList.selectHandler = new Handler(this, this.onSelect); this._ui.serverList.renderHandler = new Handler(this, this.onUpdateItem); //this._ui.serverList.array = this._load...

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

508. spine动画放大后,遮罩显示不正常 [ 93%]

...); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //加载场景文件 this.loadScene("test/TestScene.scene"); }  onEnable() {         this.loadActor(this.actor1,"comp/r_01_...

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

509. 为何我加载spine的动画drawcall会那么高,shader的指标也很高 [ 93%]

...pleteCaller:any,completeFun:Function):void         {             this.m_spineCopmleteFun = completeFun;             this.m_completeCaller = completeCaller;             this.m_curLoadingUrl = url;             if(this.isLoaded(url) == false)             {         ...

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

510. 动画-新版骨骼动画 [ 93%]

...kinModel/Zombie/new/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { //获取Animator动画组件 zombieAnimator = zombie.getChildAt(0).getComponentByType(Laya.Animator); loadUI(); }); function loadUI() { var clipName = ["walk","attack","left_fall","right_fall","back_fall"]...

来源: Laya_示例 发布时间: 20251209