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

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

501. 一个按钮注册两次点击事件,两个事件都会执行 [ 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

502. 我竟然被射线检测这个小功能给难了一天了 [ 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

503. 滤镜-发光滤镜 [ 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_示例 发布时间: 20250224

504. 材质-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_示例 发布时间: 20250224

505. 关于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

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

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

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

507. 为何我加载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

508. 动画-新版骨骼动画 [ 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_示例 发布时间: 20250224

509. 1.7.13版本以上的的截屏功能有问题 请测试下 [ 93%]

...question/4150, 我测试了下 自从1.7.13之后 截屏功能就跪了  this.road.drawToCanvas(this.road.width,this.road.picHeight,0,0); 要改成 this.road.drawToCanvas(this.road.width,this.road.picHeight);或者 this.road.drawToCanvas(this.road.width,this.road.picHeight,this.road.x,this.road....

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

510. 材质-BlinnPhong-法线贴图 [ 93%]

...发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); this.normalMapUrl = ["../../res/threeDimen/staticModel/lizardCal/rock_norm.png", "../../res/threeDimen/staticModel/lizardCal/lizard_norm.png", "../../res/threeDimen/staticModel/liz...

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