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

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

301. 3D 鼠标检测 错乱 [ 95%]

...了 修改laya.d3.js _update方法为 _update() { var i=0,n=0,j=0,m=0; n=this._eventList.length; var cameras=this._scene._cameraPool; if (n > 0){ for (i=0;i < n;i++){ var e=this._eventList; switch (e.type){ case "mousedown": this._mouseTouchDown(); break ; case "mouseup": this._mouseTouchUp();...

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

302. 龙骨skeleton鼠标点击区域的设置 [ 95%]

...angle(-420,-680,420,680); mArmature.hitArea=rect; mArmature.on(Event.CLICK,this,onClick);    2016-11-22 0 0 分享 微博 QZONE 微信 asdf131 赞同来自: 于一个点为中心播放 :      this.mArmature = this.mFactory.buildArmature(0);         this.mArmatureSpr.addChild(this.mArmatur...

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

303. 缓动-缓动函数演示 [ 95%]

... function ListItemRender() { var label = null; ListItemRender.__super.call(this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.color = "#FFFFFF"; this.addChild(label); this.setLabel = function(value) { label.text = value; } } Laya.class(ListItemRender, "ListItemRender", Box); ...

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

304. 性能测试-虫子(慎入) [ 95%]

....stage.height + padding * 2); Laya.loader.load(texturePath, Handler.create(this, this.onTextureLoaded)); } onTextureLoaded() { maggotTexture = Laya.loader.getRes(texturePath); this.initMaggots(); Laya.timer.frameLoop(1, this, this.animate); } initMaggots() { let maggotContainer; for (let i = 0; i wb...

来源: Laya2.0_示例 发布时间: 20250223

305. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 95%]

...enMode = Laya.Stage.SCREEN_NONE;         Laya.Stat.show();         this.tmpVector = new Laya.Vector3(0, 0, 0);         this.scene = Laya.stage.addChild(new Laya.Scene3D());         //初始化照相机         let camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100));     ...

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

306. List选中项下滚会变 [ 95%]

...tView = (function(_super){ function ServerListView(){ ServerListView.super(this); this.selectedIndex = -1; var data = ; //设置服务器列表项信息 for(var i=0;i<100;i++){ data = {select:{label:"服务器"+(i+1),selected:false}, flag:{text:(i==0)?"(推荐)":""}}; } this.sList.dataSource = da...

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

307. 2.6物理问题 [ 95%]

...力的数值,球和地面都设置了弹力   TestScript2  onAwake   this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(Phy...

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

308. "this.moles[this.index].show is not a function" [ 95%]

"this.moles[this.index].show is not a function" show方法定义过了,但还是显示这样 2019-02-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 这不属于引擎的内容。。 ...

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

309. setSubPixels画布擦除不掉 [ 95%]

setSubPixels画布擦除不掉 this.btn.label = Math.random().toString(); // console.log(Math.random()); let tex:Laya.Texture = Laya.Loader.getRes(this.bUrl); let x:number = this._testStatus == true ? 0:50;//Math.random()>0.5 ? 50 : 0; this._testStatus = !this._testStatus; // let canvasInfo = th...

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

310. animate 动画播放 怎么把攻击 开火 合起来播放 [ 95%]

...{ //初始化舞台 Laya.init(1334, 750, Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { /...

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