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

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

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

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

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

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

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

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

307. Laya.timer.loop只能重复调用不同函数吗,我想通过传参调用这样不行? [ 95%]

...吗,我想通过传参调用这样不行? 比如 Laya.timer.loop(50, this, this.Scroll,[this.textArr[0]]); Laya.timer.loop(50, this, this.Scroll,[this.textArr[1]]); Laya.timer.loop(50, this, this.Scroll,[this.textArr[2]]); Laya.timer.loop(50, this, this.Scroll,[this.textArr[3]]); Laya.timer.loop...

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

308. laya.sprite 不接受click事件 [ 95%]

laya.sprite 不接受click事件 代码如下: this._firstSprite= new Laya.Sprite(); this._firstSprite.pos(100,150); Laya.stage.addChild(this._firstSprite); this._firstSprite.loadImage('../laya/assets/image/0.jpg'); //this._firstSprite.scale(0.3,0.3); this._firstSprite.size(200,200); //this._firs...

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

309. Native1.0.1 无法连接wss [ 95%]

...aitve无法连接wss 示例代码如下: const url = "wss://xxx.com:8888"; this.socket = new Laya.Socket(); this.socket.endian = Laya.Byte.BIG_ENDIAN; this.socket.on(Laya.Event.OPEN, this, this.onConnectSuccess); this.socket.on(Laya.Event.CLOSE, this, this.onDisonnect); this.socket.on(Laya.Event.ERR...

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

310. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 95%]

...res/spineboy-pma.skel", Loader.SPINE).then((templet: SpineTemplet) => { this.skeleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton); this.skeleton.pos( this.pageWidth / 2, this.pageHeight / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya...

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